From 08397277fcc408607237b6e1ce89b8b41a7dc40f Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Mon, 1 Oct 2018 11:13:55 -0700 Subject: [PATCH] kernel/kconfig: Move TICKLESS options out of power management tree These options are rapidly becoming a default configuration, which is complicated by having them be hidden inside of a SYS_POWER_MANAGEMENT variable that has to be enabled first. Put them at the top level of the kernel config. Signed-off-by: Andy Ross --- kernel/Kconfig | 27 +++++++++++++++++++++++++++ kernel/Kconfig.power_mgmt | 27 --------------------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/kernel/Kconfig b/kernel/Kconfig index bec29162736..42db97963d4 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -675,6 +675,33 @@ config MP_NUM_CPUS endmenu +config TICKLESS_IDLE + bool "Tickless idle" + default y if SYS_POWER_MANAGEMENT + help + This option suppresses periodic system clock interrupts whenever the + kernel becomes idle. This permits the system to remain in a power + saving state for extended periods without having to wake up to + service each tick as it occurs. + +config TICKLESS_IDLE_THRESH + int "Tickless idle threshold" + default 3 + depends on TICKLESS_IDLE + help + This option enables clock interrupt suppression when the kernel idles + for only a short period of time. It specifies the minimum number of + ticks that must occur before the next kernel timer expires in order + for suppression to happen. + +config TICKLESS_KERNEL + bool "Tickless kernel" + default n + help + This option enables a fully event driven kernel. Periodic system + clock interrupt generation would be stopped at all times. This option + requires Tickless Idle option to be enabled. + source "kernel/Kconfig.power_mgmt" endmenu diff --git a/kernel/Kconfig.power_mgmt b/kernel/Kconfig.power_mgmt index f8a11b4acf3..32b96e4ffe1 100644 --- a/kernel/Kconfig.power_mgmt +++ b/kernel/Kconfig.power_mgmt @@ -70,31 +70,4 @@ config DEVICE_POWER_MANAGEMENT like turning off device clocks and peripherals. The device drivers may also save and restore states in these hook functions. -config TICKLESS_IDLE - bool "Tickless idle" - default y - help - This option suppresses periodic system clock interrupts whenever the - kernel becomes idle. This permits the system to remain in a power - saving state for extended periods without having to wake up to - service each tick as it occurs. - -config TICKLESS_IDLE_THRESH - int "Tickless idle threshold" - default 3 - depends on TICKLESS_IDLE - help - This option enables clock interrupt suppression when the kernel idles - for only a short period of time. It specifies the minimum number of - ticks that must occur before the next kernel timer expires in order - for suppression to happen. - -config TICKLESS_KERNEL - bool "Tickless kernel" - depends on TICKLESS_IDLE - help - This option enables a fully event driven kernel. Periodic system - clock interrupt generation would be stopped at all times. This option - requires Tickless Idle option to be enabled. - endif