|
@@ -289,11 +289,11 @@ static int cpufreq_stat_notifier_trans(struct notifier_block *nb,
|
|
if (old_index == -1 || new_index == -1)
|
|
if (old_index == -1 || new_index == -1)
|
|
goto put_policy;
|
|
goto put_policy;
|
|
|
|
|
|
- cpufreq_stats_update(stats);
|
|
|
|
-
|
|
|
|
if (old_index == new_index)
|
|
if (old_index == new_index)
|
|
goto put_policy;
|
|
goto put_policy;
|
|
|
|
|
|
|
|
+ cpufreq_stats_update(stats);
|
|
|
|
+
|
|
spin_lock(&cpufreq_stats_lock);
|
|
spin_lock(&cpufreq_stats_lock);
|
|
stats->last_index = new_index;
|
|
stats->last_index = new_index;
|
|
#ifdef CONFIG_CPU_FREQ_STAT_DETAILS
|
|
#ifdef CONFIG_CPU_FREQ_STAT_DETAILS
|