diff options
| -rw-r--r-- | drivers/cpufreq/cpufreq_stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index 4cd261156fff..c948086a332b 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c | |||
| @@ -289,11 +289,11 @@ static int cpufreq_stat_notifier_trans(struct notifier_block *nb, | |||
| 289 | if (old_index == -1 || new_index == -1) | 289 | if (old_index == -1 || new_index == -1) |
| 290 | goto put_policy; | 290 | goto put_policy; |
| 291 | 291 | ||
| 292 | cpufreq_stats_update(stats); | ||
| 293 | |||
| 294 | if (old_index == new_index) | 292 | if (old_index == new_index) |
| 295 | goto put_policy; | 293 | goto put_policy; |
| 296 | 294 | ||
| 295 | cpufreq_stats_update(stats); | ||
| 296 | |||
| 297 | spin_lock(&cpufreq_stats_lock); | 297 | spin_lock(&cpufreq_stats_lock); |
| 298 | stats->last_index = new_index; | 298 | stats->last_index = new_index; |
| 299 | #ifdef CONFIG_CPU_FREQ_STAT_DETAILS | 299 | #ifdef CONFIG_CPU_FREQ_STAT_DETAILS |
