]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
New kernel option nowait allows disabling the use of the wait instruction.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 13 Jul 2005 19:22:45 +0000 (19:22 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 29 Oct 2005 18:31:48 +0000 (19:31 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cpu-probe.c

index e40bd6fccea588988edb829f0559950bb42d4055..53e4496de6b61f0bfef4c89d06638ac734cbd04d 100644 (file)
@@ -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 = &current_cpu_data;
 
        printk("Checking for 'wait' instruction... ");
+       if (nowait) {
+               printk (" disabled.\n");
+               return;
+       }
+
        switch (c->cputype) {
        case CPU_R3081:
        case CPU_R3081E: