On Sun, 27 Nov 2016, Sebastian Andrzej Siewior wrote: > +static enum cpuhp_state hp_online; > + > static int __init intel_idle_init(void) > { ...
> - cpu_notifier_register_done(); > + retval = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "idle/intel:online", > + intel_idle_cpu_online, NULL); > + if (retval < 0) > + goto hp_setup_fail; > + hp_online = retval; Why do you want to store that. There is no exit function AFAICT. Thanks, tglx