]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Fix build failure on X86_UP_APIC
authorTejun Heo <tj@kernel.org>
Fri, 28 Jan 2011 16:22:48 +0000 (17:22 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 28 Jan 2011 16:24:49 +0000 (17:24 +0100)
commite237629d19cf88cb553f9aacd2cb977efdec7d11
treeef68db2697e4663cbfb73705631401c8a680eb47
parent5014e9f6fd9f7ae174deeda0df9303a5fbe8c94d
x86: Fix build failure on X86_UP_APIC

Commit 49933a56 (x86: Replace cpu_2_logical_apicid[] with early
percpu variable) and following changes introduced and used
x86_cpu_to_logical_apicid percpu variable.  It was declared and
defined inside CONFIG_SMP && CONFIG_X86_32 but if
CONFIG_X86_UP_APIC is set UP configuration makes use of it and
build fails.

Fix it by declaring and defining it inside CONFIG_X86_LOCAL_APIC
&& CONFIG_X86_32.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Ingo Molnar <mingo@elte.hu>
Cc: eric.dumazet@gmail.com
Cc: yinghai@kernel.org
Cc: brgerst@gmail.com
Cc: gorcunov@gmail.com
Cc: penberg@kernel.org
Cc: shaohui.zheng@intel.com
Cc: rientjes@google.com
LKML-Reference: <20110128162248.GA25746@htj.dyndns.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/smp.h
arch/x86/kernel/apic/apic.c