diff options
| author | David Keitel <dkeitel@codeaurora.org> | 2016-03-10 11:10:18 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:21:46 -0700 |
| commit | 3967f5a43f753560d91a2d16e93fcbca185c0e86 (patch) | |
| tree | d0c5ffb98d7eb769274d256eebb07d843a30b7e5 /drivers | |
| parent | 2d3e6e358138811d4492e3c6f900ff9ad0f8fab2 (diff) | |
thermal: tsens: use cvt timer.
Linux Kernel 4.4 enforces the use of cvt timers in kernel and userspace.
Fix this in the tsens driver.
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/thermal/msm-tsens.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/msm-tsens.c b/drivers/thermal/msm-tsens.c index ee73c047a3ba..43596ccdad00 100644 --- a/drivers/thermal/msm-tsens.c +++ b/drivers/thermal/msm-tsens.c @@ -1994,7 +1994,7 @@ static void tsens_poll(struct work_struct *work) idx = tmdev->crit_timestamp_last_run.idx; tmdev->crit_timestamp_last_run.time_stmp[idx%10] = sched_clock(); tmdev->crit_timestamp_last_run.idx++; - tmdev->qtimer_val_detection_start = arch_counter_get_cntpct(); + tmdev->qtimer_val_detection_start = arch_counter_get_cntvct(); spin_lock_irqsave(&tmdev->tsens_crit_lock, flags); /* Clear the sensor0 critical status */ @@ -2446,7 +2446,7 @@ static irqreturn_t tsens_tm_critical_irq_thread(int irq, void *data) tm->crit_timestamp_last_interrupt_handled.dbg_count[idx%10]++; tm->crit_timestamp_last_interrupt_handled.time_stmp[idx%10] = sched_clock(); - tm->qtimer_val_last_detection_interrupt = arch_counter_get_cntpct(); + tm->qtimer_val_last_detection_interrupt = arch_counter_get_cntvct(); if (tsens_poll_check) complete(&tm->tsens_rslt_completion); /* Mask critical interrupt */ |
