x86: fix section mismatch warning in mcheck/mce_amd_64.c
authorSam Ravnborg <sam@ravnborg.org>
Wed, 30 Jan 2008 12:33:36 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:36 +0000 (13:33 +0100)
commitb48ed48a7816aafedb260cafe872a55757b9489e
tree54cf66c1cab56deb03ffcd52b33216bb4f8ef120
parent1e35669d017eac5bea4739f927b28e64731504e1
x86: fix section mismatch warning in mcheck/mce_amd_64.c

Fix following warning:
WARNING: arch/x86/kernel/cpu/mcheck/built-in.o(.text+0x1584): Section mismatch: reference to .cpuinit.text:threshold_create_device in 'threshold_cpu_callback'

threshold_cpu_callback() is only used by threshold_cpu_notifier.
threshold_cpu_notifier is only used for cpu hot plug as it is registered
using register_hotcpu_notifier().

Mark them both __cpuinit to fix the warning.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/mcheck/mce_amd_64.c