diff options
Diffstat (limited to 'arch/powerpc/platforms/powermac/cpufreq_32.c')
-rw-r--r-- | arch/powerpc/platforms/powermac/cpufreq_32.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/powermac/cpufreq_32.c b/arch/powerpc/platforms/powermac/cpufreq_32.c index af2a8f9f1222..62926248bdb8 100644 --- a/arch/powerpc/platforms/powermac/cpufreq_32.c +++ b/arch/powerpc/platforms/powermac/cpufreq_32.c | |||
@@ -13,7 +13,6 @@ | |||
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <linux/config.h> | ||
17 | #include <linux/module.h> | 16 | #include <linux/module.h> |
18 | #include <linux/types.h> | 17 | #include <linux/types.h> |
19 | #include <linux/errno.h> | 18 | #include <linux/errno.h> |
@@ -68,7 +67,7 @@ static unsigned int cur_freq; | |||
68 | static unsigned int sleep_freq; | 67 | static unsigned int sleep_freq; |
69 | 68 | ||
70 | /* | 69 | /* |
71 | * Different models uses different mecanisms to switch the frequency | 70 | * Different models uses different mechanisms to switch the frequency |
72 | */ | 71 | */ |
73 | static int (*set_speed_proc)(int low_speed); | 72 | static int (*set_speed_proc)(int low_speed); |
74 | static unsigned int (*get_speed_proc)(void); | 73 | static unsigned int (*get_speed_proc)(void); |
@@ -268,7 +267,7 @@ static int pmu_set_cpu_speed(int low_speed) | |||
268 | 267 | ||
269 | /* Make sure the decrementer won't interrupt us */ | 268 | /* Make sure the decrementer won't interrupt us */ |
270 | asm volatile("mtdec %0" : : "r" (0x7fffffff)); | 269 | asm volatile("mtdec %0" : : "r" (0x7fffffff)); |
271 | /* Make sure any pending DEC interrupt occuring while we did | 270 | /* Make sure any pending DEC interrupt occurring while we did |
272 | * the above didn't re-enable the DEC */ | 271 | * the above didn't re-enable the DEC */ |
273 | mb(); | 272 | mb(); |
274 | asm volatile("mtdec %0" : : "r" (0x7fffffff)); | 273 | asm volatile("mtdec %0" : : "r" (0x7fffffff)); |