Messages in this thread | | | Date | Fri, 20 Jun 2014 16:16:50 -0400 | From | Boris Ostrovsky <> | Subject | Re: [PATCH] x86/mce: Don't unregister CPU hotplug notifier in error path |
| |
On 06/20/2014 04:03 PM, Borislav Petkov wrote: > On Fri, Jun 20, 2014 at 03:39:34PM -0400, Boris Ostrovsky wrote: >> What about mce_device_add()? > What is a mce_device_add()? There's no such function. >
Sorry, mce_device_create().
We can't call it in the notifier until mcheck_init_device() has been successfully executed (we need subsys_system_register(&mce_subsys)). I don't know whether we can call subsys_system_register() in mcheck_init() -- it is quite early in the boot.
-boris
| |