@@ -146,6 +146,7 @@ extern int do_one_initcall(initcall_t fn);
extern char __initdata boot_command_line[];
extern char *saved_command_line;
extern unsigned int saved_command_line_len;
+extern bool liveupdate;
extern unsigned int reset_devices;
/* used by init/main.c */
@@ -165,6 +165,16 @@ static char *ramdisk_execute_command = "/init";
bool static_key_initialized __read_mostly;
EXPORT_SYMBOL_GPL(static_key_initialized);
+bool liveupdate __read_mostly;
+EXPORT_SYMBOL(liveupdate);
+
+static int __init set_liveupdate(char *param)
+{
+ liveupdate = true;
+ return 0;
+}
+early_param("liveupdate", set_liveupdate);
+
/*
* If set, this is an indication to the drivers that reset the underlying
* device before going ahead with the initialization otherwise driver might