cpuidle: Remove manual selection of the multiple driver support
PATCH 1/2 cpuidle: Remove manual selection of the multiple driver support
Like the coupled idle state, it is not up to the user to set this option but the driver to select it.
Remove the interactive selection of this option.
Signed-off-by Daniel Lezcano <[email protected]>
--- drivers/cpuidle/Kconfig | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/cpuidle/Kconfig +1 -6
@@ -15,12 +15,7 @@ config CPU_IDLE if CPU_IDLE config CPU_IDLE_MULTIPLE_DRIVERS - bool "Support multiple cpuidle drivers" - default n - help - Allows the cpuidle framework to use different drivers for each CPU. - This is useful if you have a system with different CPU latencies and - states. If unsure say N. + bool config CPU_IDLE_GOV_LADDER bool "Ladder governor (for periodic timer tick)"
Signature · 1 line
1.7.9.5
PATCH 2/2 cpuidle: Remove time measurement in poll state
The time measurement is already done in the cpuidle framework in the 'cpuidle_enter_state' function.
Signed-off-by Daniel Lezcano <[email protected]>
--- drivers/cpuidle/driver.c | 11 ----------- 1 file changed, 11 deletions(-)
drivers/cpuidle/driver.c +0 -11
@@ -182,10 +182,6 @@ static void __cpuidle_driver_init(struct cpuidle_driver *drv)static int poll_idle (struct cpuidle_device *dev,struct cpuidle_driver *drv,int index) { -ktime_t t1, t2; -s64 diff; - - t1 =ktime_get ();local_irq_enable ();if (!current_set_polling_and_test ()) {while (!need_resched ())
@@ -193,13 +189,6 @@ static int poll_idle(struct cpuidle_device *dev, }current_clr_polling (); - t2 =ktime_get (); - diff =ktime_to_us (ktime_sub (t2, t1)); -if (diff >INT_MAX ) - diff =INT_MAX ; - - dev->last_residency = (int ) diff; -return index; }
Signature · 1 line
1.7.9.5