From: Borislav Petkov Date: Fri, 20 Jun 2014 21:16:45 +0000 (+0200) Subject: x86, MCE: Robustify mcheck_init_device X-Git-Tag: omap-for-v3.17/fixes-against-rc2~223^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51cbe7e7c400def749950ab6b2c120624dbe21a7;p=pandora-kernel.git x86, MCE: Robustify mcheck_init_device BorisO reports that misc_register() fails often on xen. The current code unregisters the CPU hotplug notifier in that case. If then a CPU is offlined and onlined back again, we end up with a second timer running on that CPU, leading to soft lockups and system hangs. So let's leave the hotcpu notifier always registered - even if mce_device_create failed for some cores and never unreg it so that we can deal with the timer handling accordingly. Reported-and-Tested-by: Boris Ostrovsky Link: http://lkml.kernel.org/r/1403274493-1371-1-git-send-email-boris.ostrovsky@oracle.com Signed-off-by: Borislav Petkov --- Reading git-diff-tree failed