x86, mce: remove invalid __cpuinit/__cpuexit annotations
authorH. Peter Anvin <hpa@linux.intel.com>
Mon, 23 Feb 2009 22:01:04 +0000 (14:01 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 23 Feb 2009 22:01:04 +0000 (14:01 -0800)
commitec5b3d32437571b8a742069a4cfd04edb6b6eda5
treea65d08019718d58008540d8601347734204dddca
parentf6d1826dfad0d15fd14a455facc80b91f2ee642f
x86, mce: remove invalid __cpuinit/__cpuexit annotations

Impact: Bug fix when CPU hotplug is disabled

Correct the following broken __cpuinit/__cpuexit annotations:

- mce_cpu_features() is called from mce_resume(), and so cannot be
  __cpuinit.
- mce_disable_cpu() and mce_reenable_cpu() are called from
  mce_cpu_callback(), and so cannot be __cpuexit().

Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/cpu/mcheck/mce_64.c