From 12275b293137c0c54f903ffef27a6ea185d5fc22 Mon Sep 17 00:00:00 2001 From: Suresh Siddha Date: Wed, 21 Dec 2011 17:45:19 -0800 Subject: [PATCH] --- yaml --- r: 277442 b: refs/heads/master c: c284b42abadbb22083bfde24d308899c08d44ffa h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/smpboot.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 39ee523dbc7c..b3c551e6086b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a31bc32760992a2c68f3d6bf7da9f760c0fd7c41 +refs/heads/master: c284b42abadbb22083bfde24d308899c08d44ffa diff --git a/trunk/arch/x86/kernel/smpboot.c b/trunk/arch/x86/kernel/smpboot.c index 9f548cb4a958..e38e21754eea 100644 --- a/trunk/arch/x86/kernel/smpboot.c +++ b/trunk/arch/x86/kernel/smpboot.c @@ -840,7 +840,8 @@ int __cpuinit native_cpu_up(unsigned int cpu) pr_debug("++++++++++++++++++++=_---CPU UP %u\n", cpu); if (apicid == BAD_APICID || apicid == boot_cpu_physical_apicid || - !physid_isset(apicid, phys_cpu_present_map)) { + !physid_isset(apicid, phys_cpu_present_map) || + (!x2apic_mode && apicid >= 255)) { printk(KERN_ERR "%s: bad cpu %d\n", __func__, cpu); return -EINVAL; }