aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq_ondemand.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq/cpufreq_ondemand.c')
-rw-r--r--drivers/cpufreq/cpufreq_ondemand.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c
index 891360edecdd..07756bddedef 100644
--- a/drivers/cpufreq/cpufreq_ondemand.c
+++ b/drivers/cpufreq/cpufreq_ondemand.c
@@ -144,10 +144,12 @@ static inline cputime64_t get_cpu_idle_time_jiffy(unsigned int cpu,
144 144
145static inline cputime64_t get_cpu_idle_time(unsigned int cpu, cputime64_t *wall) 145static inline cputime64_t get_cpu_idle_time(unsigned int cpu, cputime64_t *wall)
146{ 146{
147 u64 idle_time = get_cpu_idle_time_us(cpu, wall); 147 u64 idle_time = get_cpu_idle_time_us(cpu, NULL);
148 148
149 if (idle_time == -1ULL) 149 if (idle_time == -1ULL)
150 return get_cpu_idle_time_jiffy(cpu, wall); 150 return get_cpu_idle_time_jiffy(cpu, wall);
151 else
152 idle_time += get_cpu_iowait_time_us(cpu, wall);
151 153
152 return idle_time; 154 return idle_time;
153} 155}