Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26eb48a9 authored by Anton Blanchard's avatar Anton Blanchard Committed by Rafael J. Wysocki
Browse files

cpuidle: powernv: Don't continually set thread priority in snooze_loop()



The powerpc64 kernel exception handlers have preserved thread priorities
for a long time now, so there is no need to continually set it.

Just set it once on entry and once exit.

Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Reviewed-by: default avatarVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 79b57811
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,8 +56,8 @@ static int snooze_loop(struct cpuidle_device *dev,

	snooze_exit_time = get_tb() + snooze_timeout;
	ppc64_runlatch_off();
	while (!need_resched()) {
	HMT_very_low();
	while (!need_resched()) {
		if (snooze_timeout_en && get_tb() > snooze_exit_time)
			break;
	}