diff options
author | Joao Martins <joao.m.martins@oracle.com> | 2019-09-08 00:45:24 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-09-11 17:36:30 +0200 |
commit | 472f263660832b90e53bede2020f68cd14f8b76c (patch) | |
tree | 77bf960be9ffac5d80c2e23bdb2bfb278579b74d /arch/x86/kernel/kvm.c | |
parent | 5cc59f597c0666c6a7e1c67aac9063895949fd56 (diff) |
cpuidle-haltpoll: do not set an owner to allow modunload
cpuidle-haltpoll can be built as a module to allow optional late load.
Given we are setting @owner to THIS_MODULE, cpuidle will attempt to grab a
module reference every time a cpuidle_device is registered -- so
essentially all online cpus get a reference.
This prevents for the module to be unloaded later, which makes the
module_exit callback entirely unused. Thus remove the @owner and allow
module to be unloaded.
Fixes: fa86ee90eb11 ("add cpuidle-haltpoll driver")
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/x86/kernel/kvm.c')
0 files changed, 0 insertions, 0 deletions