ia64/xen-unstable

changeset 9872:a898a6510c5d

Occasionally large smp machines fail to reboot properly and die under
an IPI storm of smp_call_function() to machine_reboot. Only the boot
processor needs to run machine_restart, so send an IPI to CPU0.

Original patch by: Ryan Harper <ryanh@us.ibm.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Apr 27 09:56:21 2006 +0100 (2006-04-27)
parents e42ed4332053
children 4e1b8be54311
files xen/arch/x86/shutdown.c
line diff
     1.1 --- a/xen/arch/x86/shutdown.c	Thu Apr 27 09:49:48 2006 +0100
     1.2 +++ b/xen/arch/x86/shutdown.c	Thu Apr 27 09:56:21 2006 +0100
     1.3 @@ -218,7 +218,9 @@ void machine_restart(char * __unused)
     1.4      /* Ensure we are the boot CPU. */
     1.5      if ( GET_APIC_ID(apic_read(APIC_ID)) != boot_cpu_physical_apicid )
     1.6      {
     1.7 -        smp_call_function((void *)machine_restart, NULL, 1, 0);
     1.8 +        /* Send IPI to the boot CPU (logical cpu 0). */
     1.9 +        on_selected_cpus(cpumask_of_cpu(0), (void *)machine_restart,
    1.10 +                         NULL, 1, 0);
    1.11          for ( ; ; )
    1.12              safe_halt();
    1.13      }