From: Mahesh Sivasubramanian Date: Wed, 5 Oct 2016 17:15:19 +0000 (-0600) Subject: drivers: soc: qcom: system_stats: Use arch_counter_get_cntvct() X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=66510cc53c0774a7b23eb36bc1c88d1ea4f0ab52;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git drivers: soc: qcom: system_stats: Use arch_counter_get_cntvct() Upstream kernel has deprecated the use of arch_counter_get_cntpct() and the drivers are expected to switch to arch_counter_get_cntvct. Switch to using arch_counter_get_cntvct(). Change-Id: I3eeefff492889b57837a8334eb933c22d0e4917a Signed-off-by: Mahesh Sivasubramanian --- diff --git a/drivers/soc/qcom/system_stats.c b/drivers/soc/qcom/system_stats.c index 476d2f6dca27..ba35928a991b 100644 --- a/drivers/soc/qcom/system_stats.c +++ b/drivers/soc/qcom/system_stats.c @@ -154,7 +154,7 @@ static int rpm_stats_write_buf(struct seq_file *m) time = get_time_in_msec(time); seq_printf(m, "\ttime in last mode(msec):%llu\n", time); - time = arch_counter_get_cntpct() - rs.last_exited_at; + time = arch_counter_get_cntvct() - rs.last_exited_at; time = get_time_in_sec(time); seq_printf(m, "\ttime since last mode(sec):%llu\n", time);