hrtimer: peek at the timer queue just before going idle
authorArjan van de Ven <arjan@linux.intel.com>
Wed, 10 Sep 2008 23:06:00 +0000 (16:06 -0700)
committerArjan van de Ven <arjan@linux.intel.com>
Thu, 11 Sep 2008 14:17:49 +0000 (07:17 -0700)
commit2e94d1f71f7e4404d997e6fb4f1618aa147d76f9
tree73958a61dffff311cdcdc8edcb7e6a4953150601
parentae4b748e81b7e366f04f55229d5e372e372c33af
hrtimer: peek at the timer queue just before going idle

As part of going idle, we already look at the time of the next timer event to determine
which C-state to select etc.

This patch adds functionality that causes the timers that are past their
soft expire time, to fire at this time, before we calculate the next wakeup
time. This functionality will thus avoid wakeups by running timers before
going idle rather than specially waking up for it.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
drivers/cpuidle/cpuidle.c
include/linux/hrtimer.h
kernel/hrtimer.c