x86: restore handling of "reboot=no"
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Sep 2010 06:48:27 +0000 (07:48 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Sep 2010 06:48:27 +0000 (07:48 +0100)
Somewhere between 3.2 and 3.3 this got dropped (as I noticed on a
[rarely used] box that didn't crash on me since then).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/shutdown.c

index dcaa79346b3032e015ba89ed2d01c81f687c18a9..7fa264125ff8bb869919280c6479f893e8df83c3 100644 (file)
@@ -36,7 +36,7 @@ static long no_idt[2];
 static int reboot_mode;
 
 /*
- * reboot=b[ios] | t[riple] | k[bd] | [, [w]arm | [c]old]
+ * reboot=b[ios] | t[riple] | k[bd] | n[o] [, [w]arm | [c]old]
  * warm   Don't set the cold reboot flag
  * cold   Set the cold reboot flag
  * bios   Reboot by jumping through the BIOS (only for X86_32)
@@ -51,6 +51,9 @@ static void __init set_reboot_type(char *str)
     {
         switch ( *str )
         {
+        case 'n': /* no reboot */
+            opt_noreboot = 1;
+            break;
         case 'w': /* "warm" reboot (no memory testing etc) */
             reboot_mode = 0x1234;
             break;