From cc15c6703e90126546d0d6a1e47f5f785970a87b Mon Sep 17 00:00:00 2001 From: Mahesh Sivasubramanian Date: Mon, 2 May 2016 17:21:08 -0600 Subject: [PATCH] drivers: soc: qcom: rpm_stats: Switch to 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: Ie5c9236ad34ea61a375a4a3ae1f1d91fda0a9ccf Signed-off-by: Mahesh Sivasubramanian --- drivers/soc/qcom/rpm_stats.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/soc/qcom/rpm_stats.c b/drivers/soc/qcom/rpm_stats.c index 74e9f6856b9e..dacca0efe231 100644 --- a/drivers/soc/qcom/rpm_stats.c +++ b/drivers/soc/qcom/rpm_stats.c @@ -103,7 +103,7 @@ static inline int msm_rpmstats_append_data_to_buf(char *buf, time_in_last_mode = data->last_exited_at - data->last_entered_at; time_in_last_mode = get_time_in_msec(time_in_last_mode); - time_since_last_mode = arch_counter_get_cntpct() - data->last_exited_at; + time_since_last_mode = arch_counter_get_cntvct() - data->last_exited_at; time_since_last_mode = get_time_in_sec(time_since_last_mode); actual_last_sleep = get_time_in_msec(data->accumulated); @@ -263,7 +263,6 @@ static ssize_t msm_rpmstats_file_read(struct file *file, char __user *bufu, prvdata->len = msm_rpmstats_copy_stats_v2(prvdata); *ppos = 0; } - return simple_read_from_buffer(bufu, count, ppos, prvdata->buf, prvdata->len); }