kexec: add a kexec_crash_loaded() function
[deliverable/linux.git] / kernel / kexec_core.c
index 73d4c5f57dd8acff1fcef3c2f5cc6897792181b4..704534029a003e1edbab3e12887bb7a35e59e6ee 100644 (file)
@@ -95,6 +95,12 @@ int kexec_should_crash(struct task_struct *p)
        return 0;
 }
 
+int kexec_crash_loaded(void)
+{
+       return !!kexec_crash_image;
+}
+EXPORT_SYMBOL_GPL(kexec_crash_loaded);
+
 /*
  * When kexec transitions to the new kernel there is a one-to-one
  * mapping between physical and virtual addresses.  On processors
This page took 0.025229 seconds and 5 git commands to generate.