Merge tag 'for_v4.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
[sfrench/cifs-2.6.git] / arch / powerpc / kernel / mce.c
index efdd16a79075f699ecf866f4dfc22abd794699fa..bd933a75f0bcbe6dda0ede7abefe69038ada36e4 100644 (file)
@@ -488,10 +488,11 @@ long machine_check_early(struct pt_regs *regs)
 {
        long handled = 0;
 
-       __this_cpu_inc(irq_stat.mce_exceptions);
-
-       if (cur_cpu_spec && cur_cpu_spec->machine_check_early)
-               handled = cur_cpu_spec->machine_check_early(regs);
+       /*
+        * See if platform is capable of handling machine check.
+        */
+       if (ppc_md.machine_check_early)
+               handled = ppc_md.machine_check_early(regs);
        return handled;
 }