aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2016-01-15 23:56:34 +0000
committerRafael J. Wysocki <[email protected]>2016-01-19 14:28:23 +0000
commit5bb1729cbdfbe974ad6385be94b14afbac97e19f (patch)
tree6a594c2ef4f971024f5b536c526f905a9d868f1a /net/unix/garbage.c
parentsched / idle: Drop default_idle_call() fallback from call_cpuidle() (diff)
downloadkernel-5bb1729cbdfbe974ad6385be94b14afbac97e19f.tar.gz
kernel-5bb1729cbdfbe974ad6385be94b14afbac97e19f.zip
cpuidle: menu: Avoid pointless checks in menu_select()
If menu_select() cannot find a suitable state to return, it will return the state index stored in data->last_state_idx. This means that it is pointless to look at the states whose indices are less than or equal to data->last_state_idx in the main loop, so don't do that. Given that those checks are done on every idle state selection, this change can save quite a bit of completely unnecessary overhead. Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Ingo Molnar <[email protected]> Tested-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions