[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Emergency system halt should halt all processors, not just
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID d270db8a909266d2dd37b98708f92352b8ed7b4e # Parent c4ae9456a4595f046f08aea2f2e7b3664b50ab82 Emergency system halt should halt all processors, not just the crashing processor. Signed-off-by: Jan Beulich <JBeulich@xxxxxxxxxx> diff -r c4ae9456a459 -r d270db8a9092 xen/arch/x86/domain.c --- a/xen/arch/x86/domain.c Fri Jan 20 19:31:09 2006 +++ b/xen/arch/x86/domain.c Mon Jan 23 14:17:14 2006 @@ -110,6 +110,20 @@ break; } +void __attribute__((noreturn)) __machine_halt(void *unused) +{ + for ( ; ; ) + safe_halt(); +} + +void machine_halt(void) +{ + watchdog_disable(); + console_start_sync(); + smp_call_function(__machine_halt, NULL, 1, 0); + __machine_halt(NULL); +} + void machine_restart(char * __unused) { int i; @@ -117,8 +131,7 @@ if ( opt_noreboot ) { printk("Reboot disabled on cmdline: require manual reset\n"); - for ( ; ; ) - safe_halt(); + machine_halt(); } watchdog_disable(); @@ -163,20 +176,6 @@ } } - -void __attribute__((noreturn)) __machine_halt(void *unused) -{ - for ( ; ; ) - safe_halt(); -} - -void machine_halt(void) -{ - watchdog_disable(); - console_start_sync(); - smp_call_function(__machine_halt, NULL, 1, 0); - __machine_halt(NULL); -} void dump_pageframe_info(struct domain *d) { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |