x86: convert cpuinfo_x86 array to a per_cpu array
[deliverable/linux.git] / arch / x86 / kernel / mce_64.c
index 66e6b797b2cb69a5819ab61155e0ab853d830338..2cf20de5becacd82d0c57d99da467c8a43a678e9 100644 (file)
@@ -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));
This page took 0.029119 seconds and 5 git commands to generate.