diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-19 15:42:03 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-19 15:42:03 +0100 |
commit | bae5675905f402e89b2f3f53a8f72b2bfb1871bb (patch) | |
tree | 41ef1b05782cd116d30a14f91a47d261ce559d29 /xen/arch/x86/nmi.c | |
parent | 785effb80af31f3e23985abd2e70efe6fbb4c4b8 (diff) | |
download | xen-bae5675905f402e89b2f3f53a8f72b2bfb1871bb.tar.gz xen-bae5675905f402e89b2f3f53a8f72b2bfb1871bb.tar.bz2 xen-bae5675905f402e89b2f3f53a8f72b2bfb1871bb.zip |
x86: Streamline the CPU early boot process.
Mainly this involves getting rid of a bunch of cpumasks and replacing
with a single 'cpu_state' enumeration to track progress and allow
master-slave handshaking.
Cleaning this stuff up is a prerequisite for safely handling slave
failure (e.g., out of memory, invalid slave CPU capabilities,
...). This will get fixed up in a future patch.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/nmi.c')
-rw-r--r-- | xen/arch/x86/nmi.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xen/arch/x86/nmi.c b/xen/arch/x86/nmi.c index 6649afa1cc..d6fd625d01 100644 --- a/xen/arch/x86/nmi.c +++ b/xen/arch/x86/nmi.c @@ -105,16 +105,13 @@ int __init check_nmi_watchdog (void) printk("Testing NMI watchdog --- "); - for ( cpu = 0; cpu < NR_CPUS; cpu++ ) + for_each_online_cpu ( cpu ) prev_nmi_count[cpu] = nmi_count(cpu); local_irq_enable(); mdelay((10*1000)/nmi_hz); /* wait 10 ticks */ - for ( cpu = 0; cpu < NR_CPUS; cpu++ ) + for_each_online_cpu ( cpu ) { - if ( !cpu_isset(cpu, cpu_callin_map) && - !cpu_isset(cpu, cpu_online_map) ) - continue; if ( nmi_count(cpu) - prev_nmi_count[cpu] <= 5 ) printk("CPU#%d stuck. ", cpu); else |