crash: add a new kexec flag for hotplug support
[linux-2.6-block.git] / kernel / kexec.c
index bab542fc1463d24bda47efd22b6f60a8b066fe9e..a6b3f96bb50c87f2f9f37a39f5616d4aee788ce6 100644 (file)
@@ -135,8 +135,8 @@ static int do_kexec_load(unsigned long entry, unsigned long nr_segments,
                image->preserve_context = 1;
 
 #ifdef CONFIG_CRASH_HOTPLUG
-       if (flags & KEXEC_UPDATE_ELFCOREHDR)
-               image->update_elfcorehdr = 1;
+       if ((flags & KEXEC_ON_CRASH) && arch_crash_hotplug_support(image, flags))
+               image->hotplug_support = 1;
 #endif
 
        ret = machine_kexec_prepare(image);