X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fcpuidle%2Fcpuidle.c;h=12fdd3987a36c2b09ab65b9d598f276e51fbf5b7;hb=1c211849d893b14cc923a18708923954fdd2c63e;hp=ad41f19b8e3fa22d008a4c1e3c1ce9ec79fa025e;hpb=f0a221ef47df3cdde2123fe75ce3b61bb7df656d;p=karo-tx-linux.git diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index ad41f19b8e3f..12fdd3987a36 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c @@ -76,8 +76,11 @@ static void cpuidle_idle_call(void) #endif /* ask the governor for the next state */ next_state = cpuidle_curr_governor->select(dev); - if (need_resched()) + if (need_resched()) { + local_irq_enable(); return; + } + target_state = &dev->states[next_state]; /* enter the state and update stats */