X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Freboot.c;h=f813b3474646c5b320a19d9a8997349bdd14d68e;hb=45f80d53b1fe2f68c6c5b2b4518b67278bcde805;hp=269ed9384cc4284e9cf6043bd00667ea582c4369;hpb=cb54b53adae70701bdd77d848cea4b9b39b61cf9;p=karo-tx-linux.git diff --git a/kernel/reboot.c b/kernel/reboot.c index 269ed9384cc4..f813b3474646 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;