cpuquiet: initialize runnable threads first as the default governor
authorPeter De Schrijver <pdeschrijver@nvidia.com>
Tue, 11 Sep 2012 14:30:32 +0000 (17:30 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 18 May 2015 08:07:08 +0000 (16:07 +0800)
Add the necessary code to initialize the runnable threads governor first when
selected as the default governor.

Change-Id: Iebbf304f3934b429d8a217011b3cb45ecddfd558
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/131438
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Rebase-Id: Rb5009930e554648a17d78edf9d8bdd17199c9c6a

drivers/cpuquiet/governors/runnable_threads.c

index 8d75daff22287624cf8f9a47eae2e3533300a331..fcc50314d9515a8d7867b4a9418145eff8c47f45 100644 (file)
@@ -324,5 +324,9 @@ static void __exit exit_runnables(void)
 }
 
 MODULE_LICENSE("GPL");
+#ifdef CONFIG_CPUQUIET_DEFAULT_GOV_RUNNABLE
+fs_initcall(init_runnables);
+#else
 module_init(init_runnables);
+#endif
 module_exit(exit_runnables);