@@ -19,13 +19,13 @@ config CPU_IDLE_MULTIPLE_DRIVERS
bool
config CPU_IDLE_GOV_LADDER
- bool "Ladder governor (for periodic timer tick)"
+ tristate "Ladder governor (for periodic timer tick)"
config CPU_IDLE_GOV_MENU
- bool "Menu governor (for tickless system)"
+ tristate "Menu governor (for tickless system)"
config CPU_IDLE_GOV_TEO
- bool "Timer events oriented (TEO) governor (for tickless systems)"
+ tristate "Timer events oriented (TEO) governor (for tickless systems)"
help
This governor implements a simplified idle state selection method
focused on timer events and does not do any interactivity boosting.
@@ -15,6 +15,7 @@
#include <linux/kernel.h>
#include <linux/cpuidle.h>
#include <linux/jiffies.h>
+#include <linux/module.h>
#include <linux/tick.h>
#include <asm/io.h>
@@ -195,3 +196,6 @@ static int __init init_ladder(void)
}
postcore_initcall(init_ladder);
+
+MODULE_DESCRIPTION("CPUidle Ladder governor (for periodic timer tick)");
+MODULE_LICENSE("GPL v2");
@@ -13,6 +13,7 @@
#include <linux/time.h>
#include <linux/ktime.h>
#include <linux/hrtimer.h>
+#include <linux/module.h>
#include <linux/tick.h>
#include <linux/sched.h>
#include <linux/sched/loadavg.h>
@@ -577,3 +578,6 @@ static int __init init_menu(void)
}
postcore_initcall(init_menu);
+
+MODULE_DESCRIPTION("CPUidle Menu governor (for tickless system)");
+MODULE_LICENSE("GPL v2");
@@ -104,6 +104,7 @@
#include <linux/cpuidle.h>
#include <linux/jiffies.h>
#include <linux/kernel.h>
+#include <linux/module.h>
#include <linux/sched/clock.h>
#include <linux/tick.h>
@@ -532,3 +533,6 @@ static int __init teo_governor_init(void)
}
postcore_initcall(teo_governor_init);
+
+MODULE_DESCRIPTION("CPUidle Timer events oriented (TEO) governor (for tickless systems)");
+MODULE_LICENSE("GPL v2");
Allow the menu, ladder and teo governors to be compiled as modules when building allmodconfig. Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com> --- drivers/cpuidle/Kconfig | 6 +++--- drivers/cpuidle/governors/ladder.c | 4 ++++ drivers/cpuidle/governors/menu.c | 4 ++++ drivers/cpuidle/governors/teo.c | 4 ++++ 4 files changed, 15 insertions(+), 3 deletions(-)