]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mce/AMD: Fix UP build error
authorBorislav Petkov <bp@alien8.de>
Fri, 3 Feb 2012 19:18:01 +0000 (20:18 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 22 Feb 2012 12:36:30 +0000 (13:36 +0100)
commite7a35d192f4e2abb6410daf110197e9d932a441b
treefc3e2acd092e72d3fe8255bc938e631adaca3860
parent78be42e1a87c86d0544c29ee05a57780e1f78ba1
x86/mce/AMD: Fix UP build error

e38ddeef4c12 ("x86: Simplify code by removing a !SMP #ifdefs
from 'struct cpuinfo_x86'") removed a bunch of CONFIG_SMP ifdefs
around code touching struct cpuinfo_x86 members but also caused
the following build error with Randy's randconfigs:

mce_amd.c:(.cpuinit.text+0x4723): undefined reference to `cpu_llc_shared_map'

Restore the #ifdef in threshold_create_bank() which creates
symlinks on the non-BSP CPUs.

There's a better patch series being worked on by Kevin Winchester
which will solve this in a cleaner fashion, but that series is
too ambitious for v3.3 merging - so we first queue up this trivial
fix and then do the rest for v3.4.

Signed-off-by: Borislav Petkov <bp@alien8.de>
Acked-by: Kevin Winchester <kjwinchester@gmail.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Cc: Nick Bowler <nbowler@elliptictech.com>
Link: http://lkml.kernel.org/r/20120203191801.GA2846@x1.osrc.amd.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/mcheck/mce_amd.c