X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kernel%2Freboot.c;h=f813b3474646c5b320a19d9a8997349bdd14d68e;hb=2dfcb802d6bd54a2353678c6434846d94b058f2c;hp=269ed9384cc4284e9cf6043bd00667ea582c4369;hpb=9903883f1dd6e86f286b7bfa6e4b423f98c1cd9e;p=~andy%2Flinux diff --git a/kernel/reboot.c b/kernel/reboot.c index 269ed9384cc..f813b347464 100644 --- a/kernel/reboot.c +++ b/kernel/reboot.c @@ -32,7 +32,14 @@ EXPORT_SYMBOL(cad_pid); #endif enum reboot_mode reboot_mode DEFAULT_REBOOT_MODE; -int reboot_default; +/* + * This variable is used privately to keep track of whether or not + * reboot_type is still set to its default value (i.e., reboot= hasn't + * been set on the command line). This is needed so that we can + * suppress DMI scanning for reboot quirks. Without it, it's + * impossible to override a faulty reboot quirk without recompiling. + */ +int reboot_default = 1; int reboot_cpu; enum reboot_type reboot_type = BOOT_ACPI; int reboot_force;