diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2007-02-16 04:28:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-16 11:13:59 -0500 |
commit | 79bf2bb335b85db25d27421c798595a2fa2a0e82 (patch) | |
tree | 550ec2654ae1dd65b871de7fe9c890108c6e86d8 /include/linux/hrtimer.h | |
parent | f8381cba04ba8173fd5a2b8e5cd8b3290ee13a98 (diff) |
[PATCH] tick-management: dyntick / highres functionality
With Ingo Molnar <mingo@elte.hu>
Add functions to provide dynamic ticks and high resolution timers. The code
which keeps track of jiffies and handles the long idle periods is shared
between tick based and high resolution timer based dynticks. The dyntick
functionality can be disabled on the kernel commandline. Provide also the
infrastructure to support high resolution timers.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/hrtimer.h')
-rw-r--r-- | include/linux/hrtimer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index a759636fd09f..e95c96c971c0 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h | |||
@@ -201,4 +201,10 @@ extern void hrtimer_run_queues(void); | |||
201 | /* Bootup initialization: */ | 201 | /* Bootup initialization: */ |
202 | extern void __init hrtimers_init(void); | 202 | extern void __init hrtimers_init(void); |
203 | 203 | ||
204 | #if BITS_PER_LONG < 64 | ||
205 | extern unsigned long ktime_divns(const ktime_t kt, s64 div); | ||
206 | #else /* BITS_PER_LONG < 64 */ | ||
207 | # define ktime_divns(kt, div) (unsigned long)((kt).tv64 / (div)) | ||
208 | #endif | ||
209 | |||
204 | #endif | 210 | #endif |