aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cpufreq/cpufreq_governor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c
index 0001071cdcdb..679842a8d34a 100644
--- a/drivers/cpufreq/cpufreq_governor.c
+++ b/drivers/cpufreq/cpufreq_governor.c
@@ -33,9 +33,9 @@ static inline u64 get_cpu_idle_time_jiffy(unsigned int cpu, u64 *wall)
33 33
34 idle_time = cur_wall_time - busy_time; 34 idle_time = cur_wall_time - busy_time;
35 if (wall) 35 if (wall)
36 *wall = jiffies_to_usecs(cur_wall_time); 36 *wall = cputime_to_usecs(cur_wall_time);
37 37
38 return jiffies_to_usecs(idle_time); 38 return cputime_to_usecs(idle_time);
39} 39}
40 40
41cputime64_t get_cpu_idle_time(unsigned int cpu, cputime64_t *wall) 41cputime64_t get_cpu_idle_time(unsigned int cpu, cputime64_t *wall)