OSDN Git Service

cpuidle: powernv: Don't bounce between low and very low thread priority
authorAnton Blanchard <anton@samba.org>
Mon, 3 Apr 2017 21:54:12 +0000 (07:54 +1000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 19 Apr 2017 21:17:18 +0000 (23:17 +0200)
commit79b578111febef642143669254b243ffbcf64ea9
treeb48a6b2d200392ee6103da2388bbb6676443f942
parent02018b3929a23acdd452b986e7c8aeca4529d492
cpuidle: powernv: Don't bounce between low and very low thread priority

The core of snooze_loop() continually bounces between low and very
low thread priority. Changing thread priorities is an expensive
operation that can negatively impact other threads on a core.

All CPUs that can run PowerNV support very low priority, so we can
avoid the change completely.

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>
drivers/cpuidle/cpuidle-powernv.c