]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen/common: Drop unnecessary #ifdef CONFIG_KEXEC
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 21 Nov 2018 17:18:02 +0000 (17:18 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Nov 2018 18:30:56 +0000 (18:30 +0000)
kexec.h itself has suitable stubs for the !CONFIG_KEXEC case, so calls to
kexec_crash() don't need guarding.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
xen/common/shutdown.c
xen/drivers/char/console.c

index 009a70c2fb0d3155e63f05fef6304ff96d2e22f4..2ed4d62214f9599c2c70f177448eb013ccfd4361 100644 (file)
@@ -6,9 +6,7 @@
 #include <xen/watchdog.h>
 #include <xen/shutdown.h>
 #include <xen/console.h>
-#ifdef CONFIG_KEXEC
 #include <xen/kexec.h>
-#endif
 #include <asm/debugger.h>
 #include <public/sched.h>
 
@@ -44,9 +42,7 @@ void hwdom_shutdown(u8 reason)
     case SHUTDOWN_crash:
         debugger_trap_immediate();
         printk("Hardware Dom%u crashed: ", hardware_domain->domain_id);
-#ifdef CONFIG_KEXEC
         kexec_crash();
-#endif
         maybe_reboot();
         break; /* not reached */
 
@@ -59,9 +55,7 @@ void hwdom_shutdown(u8 reason)
     case SHUTDOWN_watchdog:
         printk("Hardware Dom%u shutdown: watchdog rebooting machine\n",
                hardware_domain->domain_id);
-#ifdef CONFIG_KEXEC
         kexec_crash();
-#endif
         machine_restart(0);
         break; /* not reached */
 
index f39a37e025b572d4b99c4a5e7e0f1fd8ed692a97..675193a272aaf0d5856f6d36be29ec7ffab89df4 100644 (file)
@@ -1338,9 +1338,7 @@ void panic(const char *fmt, ...)
 
     debugger_trap_immediate();
 
-#ifdef CONFIG_KEXEC
     kexec_crash();
-#endif
 
     if ( opt_noreboot )
         machine_halt();