diff options
author | Rafael J. Wysocki <[email protected]> | 2016-01-16 00:54:53 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2016-01-19 15:27:49 +0100 |
commit | 51164251f5c35e6596130ef0de94ffe65fe441e0 (patch) | |
tree | 914eeadf8095d4fad848451c7928c80ddb17166a /lib/netdev-notifier-error-inject.c | |
parent | 10475b34f4d71cf71cfe7c5d1f27d8ff3a4eb9bc (diff) |
sched / idle: Drop default_idle_call() fallback from call_cpuidle()
After commit 9c4b2867ed7c (cpuidle: menu: Fix menu_select() for
CPUIDLE_DRIVER_STATE_START == 0) it is clear that menu_select()
cannot return negative values. Moreover, ladder_select_state()
will never return a negative value too, so make find_deepest_state()
return non-negative values too and drop the default_idle_call()
fallback from call_cpuidle().
This eliminates one branch from the idle loop and makes the governors
and find_deepest_state() handle the case when all states have been
disabled from sysfs consistently.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Tested-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions