summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/mce_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/mce_64.c')
-rw-r--r--arch/x86/kernel/mce_64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/mce_64.c b/arch/x86/kernel/mce_64.c
index 66e6b797b2cb..2cf20de5beca 100644
--- a/arch/x86/kernel/mce_64.c
+++ b/arch/x86/kernel/mce_64.c
@@ -799,7 +799,8 @@ static __cpuinit int mce_create_device(unsigned int cpu)
{
int err;
int i;
- if (!mce_available(&cpu_data[cpu]))
+
+ if (!mce_available(&cpu_data(cpu)))
return -EIO;
memset(&per_cpu(device_mce, cpu).kobj, 0, sizeof(struct kobject));