summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorMahesh Sivasubramanian <msivasub@codeaurora.org>2016-10-05 11:15:19 -0600
committerMahesh Sivasubramanian <msivasub@codeaurora.org>2016-10-05 11:36:14 -0600
commit66510cc53c0774a7b23eb36bc1c88d1ea4f0ab52 (patch)
tree481fbacad88fff49cd48baea2578e57837d81eab /drivers/soc
parent057bdafd976ca7609ed223dbd4473d535bcb6459 (diff)
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 <msivasub@codeaurora.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/qcom/system_stats.c2
1 files changed, 1 insertions, 1 deletions
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);