aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/mpparse_32.c
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-03-03 12:12:41 -0500
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:40:53 -0400
commit7b1292e2371e3ae2ac69fbb899d539ddc7b53a27 (patch)
treee18c0668c0245f7096fe0a31771133ce96ea8af7 /arch/x86/kernel/mpparse_32.c
parent93b016f8f393c1f8c27e8c4df06ad1420fac65f5 (diff)
x86: use disabled_cpus in i386
this patch allows a cpu to be marked as present but disabled in i386, just as x86_64 currently does. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/mpparse_32.c')
-rw-r--r--arch/x86/kernel/mpparse_32.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c
index f349e68e45a0..b2aded3fbfec 100644
--- a/arch/x86/kernel/mpparse_32.c
+++ b/arch/x86/kernel/mpparse_32.c
@@ -70,6 +70,8 @@ unsigned int boot_cpu_physical_apicid = -1U;
70/* Internal processor count */ 70/* Internal processor count */
71unsigned int num_processors; 71unsigned int num_processors;
72 72
73unsigned disabled_cpus __cpuinitdata;
74
73/* Bitmask of physically existing CPUs */ 75/* Bitmask of physically existing CPUs */
74physid_mask_t phys_cpu_present_map; 76physid_mask_t phys_cpu_present_map;
75 77
@@ -108,8 +110,10 @@ static void __cpuinit MP_processor_info (struct mpc_config_processor *m)
108 int ver, apicid; 110 int ver, apicid;
109 physid_mask_t phys_cpu; 111 physid_mask_t phys_cpu;
110 112
111 if (!(m->mpc_cpuflag & CPU_ENABLED)) 113 if (!(m->mpc_cpuflag & CPU_ENABLED)) {
114 disabled_cpus++;
112 return; 115 return;
116 }
113 117
114 apicid = mpc_apic_id(m, translation_table[mpc_record]); 118 apicid = mpc_apic_id(m, translation_table[mpc_record]);
115 119