X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fcpuidle%2Fcpuidle.c;h=5bed73329ef825e2f423f04f4540d57330d30b73;hb=1f6d6e8ebe73ba9d9d4c693f7f6f50f661dbd6e4;hp=bb6e3b338043e13e8e87bc8fceaad67e8f6a9dcc;hpb=db563fc2e80534f98c7f9121a6f7dfe41f177a79;p=linux-2.6-omap-h63xx.git diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index bb6e3b33804..5bed73329ef 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "cpuidle.h" @@ -64,6 +65,12 @@ static void cpuidle_idle_call(void) return; } + /* + * run any timers that can be run now, at this point + * before calculating the idle duration etc. + */ + hrtimer_peek_ahead_timers(); + /* ask the governor for the next state */ next_state = cpuidle_curr_governor->select(dev); if (need_resched())