[v8,3/7] pseries/cpuidle: Make pseries_idle backend driver a non-module.

Message ID 20131111053528.14797.88417.stgit@deepthi.in.ibm.com
State Changes Requested
Delegated to: Benjamin Herrenschmidt
Headers show

Commit Message

Deepthi Dharwar Nov. 11, 2013, 5:35 a.m.
Currently pseries_idle cpuidle backend driver cannot be
built as a module due to dependencies. Therefore the driver has
to be built in. The dependency is around update_snooze_delay() defined
in cpuidle driver and called from kernel/sysfs.c.
This patch is removes all the module related code.

Signed-off-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
 drivers/cpuidle/cpuidle-powerpc-book3s.c |   15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)


diff --git a/drivers/cpuidle/cpuidle-powerpc-book3s.c b/drivers/cpuidle/cpuidle-powerpc-book3s.c
index 51f6cda..82c9e15 100644
--- a/drivers/cpuidle/cpuidle-powerpc-book3s.c
+++ b/drivers/cpuidle/cpuidle-powerpc-book3s.c
@@ -292,17 +292,4 @@  static int __init pseries_processor_idle_init(void)
 	return 0;
-static void __exit pseries_processor_idle_exit(void)
-	unregister_cpu_notifier(&setup_hotplug_notifier);
-	cpuidle_unregister(&pseries_idle_driver);
-	return;
-MODULE_AUTHOR("Deepthi Dharwar <deepthi@linux.vnet.ibm.com>");
-MODULE_DESCRIPTION("Cpuidle driver for POWER");