diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-05-21 14:05:27 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-05-22 01:34:26 +0200 |
commit | fb40bc3e94933007d3e42e96daf1ec8044821cb8 (patch) | |
tree | 417d3c2cbd639aa3ccc3f77cd019d962f7be08df /drivers/cpufreq | |
parent | c9b6869dbb3c6edb24e3cc76d3655067cfa7b802 (diff) | |
download | linux-3.10-fb40bc3e94933007d3e42e96daf1ec8044821cb8.tar.gz linux-3.10-fb40bc3e94933007d3e42e96daf1ec8044821cb8.tar.bz2 linux-3.10-fb40bc3e94933007d3e42e96daf1ec8044821cb8.zip |
MIPS: Idle: Re-enable irqs at the end of r3081, au1k and loongson2 cpu_wait.
Without this, the
WARN_ON_ONCE(irqs_disabled());
in the idle loop will be triggered.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/loongson2_cpufreq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c index 84889573b56..868976d443a 100644 --- a/drivers/cpufreq/loongson2_cpufreq.c +++ b/drivers/cpufreq/loongson2_cpufreq.c @@ -200,6 +200,7 @@ static void loongson2_cpu_wait(void) LOONGSON_CHIPCFG0 &= ~0x7; /* Put CPU into wait mode */ LOONGSON_CHIPCFG0 = cpu_freq; /* Restore CPU state */ spin_unlock_irqrestore(&loongson2_wait_lock, flags); + local_irq_enable(); } static int __init cpufreq_init(void) |