diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-08-04 10:59:22 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-08-04 10:59:22 +0100 |
commit | e7c388db06f0e8d040b35a67fa1dc06ab937e939 (patch) | |
tree | dfdde5f5f6598f049d476639697f91aa62ba4c86 /xen/arch/x86/shutdown.c | |
parent | 269d43f9a2526321ad71c8f5fc44d3bc14e97f2b (diff) | |
download | xen-e7c388db06f0e8d040b35a67fa1dc06ab937e939.tar.gz xen-e7c388db06f0e8d040b35a67fa1dc06ab937e939.tar.bz2 xen-e7c388db06f0e8d040b35a67fa1dc06ab937e939.zip |
Delay 5 seconds on reboot *after* stopping all CPUs.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/shutdown.c')
-rw-r--r-- | xen/arch/x86/shutdown.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/xen/arch/x86/shutdown.c b/xen/arch/x86/shutdown.c index a65771575f..c53fd3a1bf 100644 --- a/xen/arch/x86/shutdown.c +++ b/xen/arch/x86/shutdown.c @@ -291,7 +291,12 @@ __initcall(reboot_init); #endif -void machine_restart(void) +static void __machine_restart(void *pdelay) +{ + machine_restart(*(unsigned int *)pdelay); +} + +void machine_restart(unsigned int delay_millisecs) { int i; @@ -304,8 +309,8 @@ void machine_restart(void) if ( get_apic_id() != boot_cpu_physical_apicid ) { /* Send IPI to the boot CPU (logical cpu 0). */ - on_selected_cpus(cpumask_of_cpu(0), (void *)machine_restart, - NULL, 1, 0); + on_selected_cpus(cpumask_of_cpu(0), __machine_restart, + &delay_millisecs, 1, 0); for ( ; ; ) halt(); } |