summaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle/cpuidle.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2017-04-04 07:54:14 +1000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-04-19 23:17:19 +0200
commit0baa91cb73e296242edad89cfe3f60c59ab8a95a (patch)
tree9e5250def7c919e0a8ad2763d7707a3dfc42bd7d /drivers/cpuidle/cpuidle.c
parent26eb48a9faf241abd60aa546e6beb896011667c1 (diff)
downloadlinux-stable-0baa91cb73e296242edad89cfe3f60c59ab8a95a.tar.gz
linux-stable-0baa91cb73e296242edad89cfe3f60c59ab8a95a.tar.bz2
linux-stable-0baa91cb73e296242edad89cfe3f60c59ab8a95a.zip
cpuidle: powernv: Avoid a branch in the core snooze_loop() loop
When in the snooze_loop() we want to take up the least amount of resources. On my version of gcc (6.3), we end up with an extra branch because it predicts snooze_timeout_en to be false, whereas it is almost always true. Use likely() to avoid the branch and be a little nicer to the other non idle threads on the core. Signed-off-by: Anton Blanchard <anton@samba.org> Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpuidle/cpuidle.c')
0 files changed, 0 insertions, 0 deletions