]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cpuidle: governors: Remove remaining old module code
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 5 Oct 2016 07:33:12 +0000 (09:33 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 21 Oct 2016 12:49:51 +0000 (14:49 +0200)
commite5f1b245870d59be0e6cc3b33edf5406a3b59648
tree0cb68a8a30bfd340cffa84e16bba73967729bccd
parent1001354ca34179f3db924eb66672442a173147dc
cpuidle: governors: Remove remaining old module code

The governor's code use try_module_get() and put_module() to refcount
the governor's module. But the governors are not compiled as module.

The refcount does not prevent to switch the governor or unload
a module as they aren't compiled as modules. The code is pointless,
so remove it.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/governor.c
drivers/cpuidle/governors/ladder.c
drivers/cpuidle/governors/menu.c
include/linux/cpuidle.h