diff options
author | Super Liu <supercjliu@google.com> | 2023-01-03 08:35:52 +0000 |
---|---|---|
committer | Super Liu <supercjliu@google.com> | 2023-01-04 01:59:16 +0000 |
commit | 0402a2094d464f64454fdb6b05e93819a947750d (patch) | |
tree | 53d681df90db27857a0e205b6bf733b9011b36ef | |
parent | f323bf3b045fdc177e9b9310eecadc4498ca62b0 (diff) | |
download | novatek_touch-0402a2094d464f64454fdb6b05e93819a947750d.tar.gz |
touch/novatek: change atrace time unit to ns.android-13.0.0_r0.91android-gs-tangorpro-5.10-android13-d2
Bug: 263444046
Change-Id: I517538e4f9b8030cc5b5a5e5ebeaed6b9b5017ce
Signed-off-by: Super Liu <supercjliu@google.com>
-rw-r--r-- | nt36xxx/nt36xxx.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nt36xxx/nt36xxx.c b/nt36xxx/nt36xxx.c index 595956e..a906912 100644 --- a/nt36xxx/nt36xxx.c +++ b/nt36xxx/nt36xxx.c @@ -2008,9 +2008,9 @@ static irqreturn_t nvt_ts_work_func(int irq, void *data) if (ts->pen_format_id == 0x01) { pen_ktime = ktime_get(); scnprintf(trace_tag, sizeof(trace_tag), - "stylus-active: TH %lld BH %lld delta %lld us\n", - ktime_to_us(ts->timestamp), ktime_to_us(pen_ktime), - ktime_us_delta(pen_ktime, ts->timestamp)); + "stylus-active: IN_TS=%lld TS=%lld DELTA=%lld ns.\n", + ktime_to_ns(ts->timestamp), ktime_to_ns(pen_ktime), + ktime_to_ns(ktime_sub(pen_ktime, ts->timestamp))); ATRACE_BEGIN(trace_tag); // report pen data pen_x = (uint32_t)(point_data[67] << 8) + (uint32_t)(point_data[68]); @@ -2086,9 +2086,9 @@ static irqreturn_t nvt_ts_work_func(int irq, void *data) } else if (ts->pen_active) { // pen_format_id = 0xFF and a pen was reporting pen_ktime = ktime_get(); scnprintf(trace_tag, sizeof(trace_tag), - "stylus-inactive: TH %lld BH %lld delta %lld us\n", - ktime_to_us(ts->timestamp), ktime_to_us(pen_ktime), - ktime_us_delta(pen_ktime, ts->timestamp)); + "stylus-inactive: IN_TS=%lld TS=%lld DELTA=%lld ns.\n", + ktime_to_ns(ts->timestamp), ktime_to_ns(pen_ktime), + ktime_to_ns(ktime_sub(pen_ktime, ts->timestamp))); ATRACE_BEGIN(trace_tag); input_set_timestamp(ts->pen_input_dev, ts->timestamp); |