Add a missing cpu hotplug lock to the 64bit mce code TBD: causes lockdep inversion warnings. disabled for now Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/mcheck/mce_64.c | 2 ++ 1 file changed, 2 insertions(+) Index: linux/arch/x86/kernel/cpu/mcheck/mce_64.c =================================================================== --- linux.orig/arch/x86/kernel/cpu/mcheck/mce_64.c +++ linux/arch/x86/kernel/cpu/mcheck/mce_64.c @@ -933,6 +933,7 @@ static __init int mce_init_device(void) if (err) return err; + lock_cpu_hotplug(); for_each_online_cpu(i) { err = mce_create_device(i); if (err) @@ -940,6 +941,7 @@ static __init int mce_init_device(void) } register_hotcpu_notifier(&mce_cpu_notifier); + unlock_cpu_hotplug(); misc_register(&mce_log_device); return err; }