X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fcpuidle%2Fcpuidle.c;h=12fdd3987a36c2b09ab65b9d598f276e51fbf5b7;hb=68e71d1902a820c9bc7a5a6c23260841caafff33;hp=ad41f19b8e3fa22d008a4c1e3c1ce9ec79fa025e;hpb=d910fc786014ac3fb72f837c329c112e0c7a9aea;p=mv-sheeva.git diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index ad41f19b8e3..12fdd3987a3 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 */