diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2008-09-10 19:06:00 -0400 |
---|---|---|
committer | Arjan van de Ven <arjan@linux.intel.com> | 2008-09-11 10:17:49 -0400 |
commit | 2e94d1f71f7e4404d997e6fb4f1618aa147d76f9 (patch) | |
tree | 73958a61dffff311cdcdc8edcb7e6a4953150601 /include/linux/hrtimer.h | |
parent | ae4b748e81b7e366f04f55229d5e372e372c33af (diff) |
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>
Diffstat (limited to 'include/linux/hrtimer.h')
-rw-r--r-- | include/linux/hrtimer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index 95db11f62ff2..d93b1e1dc169 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h | |||
@@ -326,6 +326,11 @@ static inline int hrtimer_is_hres_active(struct hrtimer *timer) | |||
326 | extern ktime_t ktime_get(void); | 326 | extern ktime_t ktime_get(void); |
327 | extern ktime_t ktime_get_real(void); | 327 | extern ktime_t ktime_get_real(void); |
328 | 328 | ||
329 | |||
330 | DECLARE_PER_CPU(struct tick_device, tick_cpu_device); | ||
331 | extern void hrtimer_peek_ahead_timers(void); | ||
332 | |||
333 | |||
329 | /* Exported timer functions: */ | 334 | /* Exported timer functions: */ |
330 | 335 | ||
331 | /* Initialize timers: */ | 336 | /* Initialize timers: */ |