summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/cpuidle/cpuidle-powernv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpuidle/cpuidle-powernv.c b/drivers/cpuidle/cpuidle-powernv.c
index f8901671fff4..5bb4bb303fba 100644
--- a/drivers/cpuidle/cpuidle-powernv.c
+++ b/drivers/cpuidle/cpuidle-powernv.c
@@ -58,7 +58,7 @@ static int snooze_loop(struct cpuidle_device *dev,
58 ppc64_runlatch_off(); 58 ppc64_runlatch_off();
59 HMT_very_low(); 59 HMT_very_low();
60 while (!need_resched()) { 60 while (!need_resched()) {
61 if (snooze_timeout_en && get_tb() > snooze_exit_time) 61 if (likely(snooze_timeout_en) && get_tb() > snooze_exit_time)
62 break; 62 break;
63 } 63 }
64 64