diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-07-13 21:22:45 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 20:31:48 +0200 |
commit | 55d04dff0fcf5d1c3f0d6edf6df86d82fa4c053b (patch) | |
tree | f046b15a3c327c486dc871a4c810d013979b4a77 /arch/mips/kernel/cpu-probe.c | |
parent | Use an irq_enable_hazard hazard barrier in unmask_mips_irq. This (diff) | |
download | linux-55d04dff0fcf5d1c3f0d6edf6df86d82fa4c053b.tar.xz linux-55d04dff0fcf5d1c3f0d6edf6df86d82fa4c053b.zip |
New kernel option nowait allows disabling the use of the wait instruction.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/cpu-probe.c')
-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) : : "r" (au1k_wait)); } +static int __initdata nowait = 0; + +int __init wait_disable(char *s) +{ + nowait = 1; + + return 1; +} + +__setup("nowait", wait_disable); + static inline void check_wait(void) { struct cpuinfo_mips *c = ¤t_cpu_data; printk("Checking for 'wait' instruction... "); + if (nowait) { + printk (" disabled.\n"); + return; + } + switch (c->cputype) { case CPU_R3081: case CPU_R3081E: |