diff options
Diffstat (limited to 'drivers/cpufreq/loongson2_cpufreq.c')
-rw-r--r-- | drivers/cpufreq/loongson2_cpufreq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c index 84889573b566..d53912768946 100644 --- a/drivers/cpufreq/loongson2_cpufreq.c +++ b/drivers/cpufreq/loongson2_cpufreq.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | 19 | ||
20 | #include <asm/clock.h> | 20 | #include <asm/clock.h> |
21 | #include <asm/idle.h> | ||
21 | 22 | ||
22 | #include <asm/mach-loongson/loongson.h> | 23 | #include <asm/mach-loongson/loongson.h> |
23 | 24 | ||
@@ -200,6 +201,7 @@ static void loongson2_cpu_wait(void) | |||
200 | LOONGSON_CHIPCFG0 &= ~0x7; /* Put CPU into wait mode */ | 201 | LOONGSON_CHIPCFG0 &= ~0x7; /* Put CPU into wait mode */ |
201 | LOONGSON_CHIPCFG0 = cpu_freq; /* Restore CPU state */ | 202 | LOONGSON_CHIPCFG0 = cpu_freq; /* Restore CPU state */ |
202 | spin_unlock_irqrestore(&loongson2_wait_lock, flags); | 203 | spin_unlock_irqrestore(&loongson2_wait_lock, flags); |
204 | local_irq_enable(); | ||
203 | } | 205 | } |
204 | 206 | ||
205 | static int __init cpufreq_init(void) | 207 | static int __init cpufreq_init(void) |