Message ID | 20170403215414.16951-2-anton@ozlabs.org (mailing list archive) |
---|---|
State | Mainlined |
Delegated to: | Rafael Wysocki |
Headers | show |
* Anton Blanchard <anton@ozlabs.org> [2017-04-04 07:54:13]: > From: Anton Blanchard <anton@samba.org> > > 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: Anton Blanchard <anton@samba.org> Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> > --- > drivers/cpuidle/cpuidle-powernv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/cpuidle/cpuidle-powernv.c b/drivers/cpuidle/cpuidle-powernv.c > index 9d9f164894eb..8c991c254b95 100644 > --- a/drivers/cpuidle/cpuidle-powernv.c > +++ b/drivers/cpuidle/cpuidle-powernv.c > @@ -56,8 +56,8 @@ static int snooze_loop(struct cpuidle_device *dev, > > snooze_exit_time = get_tb() + snooze_timeout; > ppc64_runlatch_off(); > + HMT_very_low(); > while (!need_resched()) { > - HMT_very_low(); > if (snooze_timeout_en && get_tb() > snooze_exit_time) > break; > } > -- > 2.11.0 >
diff --git a/drivers/cpuidle/cpuidle-powernv.c b/drivers/cpuidle/cpuidle-powernv.c index 9d9f164894eb..8c991c254b95 100644 --- a/drivers/cpuidle/cpuidle-powernv.c +++ b/drivers/cpuidle/cpuidle-powernv.c @@ -56,8 +56,8 @@ static int snooze_loop(struct cpuidle_device *dev, snooze_exit_time = get_tb() + snooze_timeout; ppc64_runlatch_off(); + HMT_very_low(); while (!need_resched()) { - HMT_very_low(); if (snooze_timeout_en && get_tb() > snooze_exit_time) break; }