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 <msivasub@codeaurora.org>
This commit is contained in:
Mahesh Sivasubramanian 2016-05-02 17:21:08 -06:00 committed by Jeevan Shriram
parent 62a79b84fd
commit cc15c6703e

View file

@ -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);
}