diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c index 36859a78..38e76c87 100644 --- a/drivers/cpufreq/cpufreq_interactive.c +++ b/drivers/cpufreq/cpufreq_interactive.c @@ -171,6 +171,9 @@ static unsigned int cpufreq_interactive_calc_freq(unsigned int cpu) idle_time = (unsigned int) current_idle_time - freq_change_time_in_idle; delta_time = (unsigned int) current_wall_time - freq_change_time; + if (delta_time == 0) + return policy->cur; + cpu_load = 100 * (delta_time - idle_time) / delta_time; return policy->cur * cpu_load / 100;