aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/cpufreq/cpufreq_stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c
index ef09e069433b..ae70d63a8b26 100644
--- a/drivers/cpufreq/cpufreq_stats.c
+++ b/drivers/cpufreq/cpufreq_stats.c
@@ -288,7 +288,7 @@ cpufreq_stat_notifier_trans (struct notifier_block *nb, unsigned long val,
288 if (!stat) 288 if (!stat)
289 return 0; 289 return 0;
290 290
291 old_index = freq_table_get_index(stat, freq->old); 291 old_index = stat->last_index;
292 new_index = freq_table_get_index(stat, freq->new); 292 new_index = freq_table_get_index(stat, freq->new);
293 293
294 cpufreq_stats_update(freq->cpu); 294 cpufreq_stats_update(freq->cpu);