diff options
Diffstat (limited to 'arch/mips/kernel/cpu-probe.c')
-rw-r--r-- | arch/mips/kernel/cpu-probe.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index 335a6ae3d594..11c92dc53791 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c | |||
@@ -45,18 +45,7 @@ static void r39xx_wait(void) | |||
45 | local_irq_enable(); | 45 | local_irq_enable(); |
46 | } | 46 | } |
47 | 47 | ||
48 | /* | 48 | extern void r4k_wait(void); |
49 | * There is a race when WAIT instruction executed with interrupt | ||
50 | * enabled. | ||
51 | * But it is implementation-dependent wheter the pipelie restarts when | ||
52 | * a non-enabled interrupt is requested. | ||
53 | */ | ||
54 | static void r4k_wait(void) | ||
55 | { | ||
56 | __asm__(" .set mips3 \n" | ||
57 | " wait \n" | ||
58 | " .set mips0 \n"); | ||
59 | } | ||
60 | 49 | ||
61 | /* | 50 | /* |
62 | * This variant is preferable as it allows testing need_resched and going to | 51 | * This variant is preferable as it allows testing need_resched and going to |
@@ -128,7 +117,7 @@ static int __init wait_disable(char *s) | |||
128 | 117 | ||
129 | __setup("nowait", wait_disable); | 118 | __setup("nowait", wait_disable); |
130 | 119 | ||
131 | static inline void check_wait(void) | 120 | void __init check_wait(void) |
132 | { | 121 | { |
133 | struct cpuinfo_mips *c = ¤t_cpu_data; | 122 | struct cpuinfo_mips *c = ¤t_cpu_data; |
134 | 123 | ||
@@ -242,7 +231,6 @@ static inline void check_errata(void) | |||
242 | 231 | ||
243 | void __init check_bugs32(void) | 232 | void __init check_bugs32(void) |
244 | { | 233 | { |
245 | check_wait(); | ||
246 | check_errata(); | 234 | check_errata(); |
247 | } | 235 | } |
248 | 236 | ||