diff options
-rw-r--r-- | drivers/cpufreq/cpufreq_userspace.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq_userspace.c b/drivers/cpufreq/cpufreq_userspace.c index f231015904c0..bedac1aa9be3 100644 --- a/drivers/cpufreq/cpufreq_userspace.c +++ b/drivers/cpufreq/cpufreq_userspace.c | |||
@@ -47,9 +47,11 @@ userspace_cpufreq_notifier(struct notifier_block *nb, unsigned long val, | |||
47 | if (!per_cpu(cpu_is_managed, freq->cpu)) | 47 | if (!per_cpu(cpu_is_managed, freq->cpu)) |
48 | return 0; | 48 | return 0; |
49 | 49 | ||
50 | pr_debug("saving cpu_cur_freq of cpu %u to be %u kHz\n", | 50 | if (val == CPUFREQ_POSTCHANGE) { |
51 | freq->cpu, freq->new); | 51 | pr_debug("saving cpu_cur_freq of cpu %u to be %u kHz\n", |
52 | per_cpu(cpu_cur_freq, freq->cpu) = freq->new; | 52 | freq->cpu, freq->new); |
53 | per_cpu(cpu_cur_freq, freq->cpu) = freq->new; | ||
54 | } | ||
53 | 55 | ||
54 | return 0; | 56 | return 0; |
55 | } | 57 | } |