diff options
-rw-r--r-- | arch/mips/kernel/cpu-probe.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index e40bd6fccea5..53e4496de6b6 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c | |||
@@ -71,11 +71,27 @@ static void au1k_wait(void) | |||
71 | : : "r" (au1k_wait)); | 71 | : : "r" (au1k_wait)); |
72 | } | 72 | } |
73 | 73 | ||
74 | static int __initdata nowait = 0; | ||
75 | |||
76 | int __init wait_disable(char *s) | ||
77 | { | ||
78 | nowait = 1; | ||
79 | |||
80 | return 1; | ||
81 | } | ||
82 | |||
83 | __setup("nowait", wait_disable); | ||
84 | |||
74 | static inline void check_wait(void) | 85 | static inline void check_wait(void) |
75 | { | 86 | { |
76 | struct cpuinfo_mips *c = ¤t_cpu_data; | 87 | struct cpuinfo_mips *c = ¤t_cpu_data; |
77 | 88 | ||
78 | printk("Checking for 'wait' instruction... "); | 89 | printk("Checking for 'wait' instruction... "); |
90 | if (nowait) { | ||
91 | printk (" disabled.\n"); | ||
92 | return; | ||
93 | } | ||
94 | |||
79 | switch (c->cputype) { | 95 | switch (c->cputype) { |
80 | case CPU_R3081: | 96 | case CPU_R3081: |
81 | case CPU_R3081E: | 97 | case CPU_R3081E: |