aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hrtimer.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2007-02-16 04:28:00 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-16 11:13:59 -0500
commitd316c57ff6bfad9557462b9100f25c6260d2b774 (patch)
treef77a04aab5c39c416f52ff5ac9396da5a6b93759 /include/linux/hrtimer.h
parente05d723f98595b2f4d368f63636a997d98703304 (diff)
[PATCH] clockevents: add core functionality
Architectures register their clock event devices, in the clock events core. Users of the clockevents core can get clock event devices for their use. The clockevents core code provides notification mechanisms for various clock related management events. This allows to control the clock event devices without the architectures having to worry about the details of function assignment. This is also a preliminary for high resolution timers and dynamic ticks to allow the core code to control the clock functionality without intrusive changes to the architecture code. [Fixes-by: Ingo Molnar <mingo@elte.hu>] Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: Roman Zippel <zippel@linux-m68k.org> Cc: john stultz <johnstul@us.ibm.com> Cc: Andi Kleen <ak@suse.de> 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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h
index 9041405d0b71..a759636fd09f 100644
--- a/include/linux/hrtimer.h
+++ b/include/linux/hrtimer.h
@@ -144,6 +144,8 @@ struct hrtimer_cpu_base {
144 * is expired in the next softirq when the clock was advanced. 144 * is expired in the next softirq when the clock was advanced.
145 */ 145 */
146#define clock_was_set() do { } while (0) 146#define clock_was_set() do { } while (0)
147extern ktime_t ktime_get(void);
148extern ktime_t ktime_get_real(void);
147 149
148/* Exported timer functions: */ 150/* Exported timer functions: */
149 151
@@ -196,9 +198,6 @@ extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl,
196/* Soft interrupt function to run the hrtimer queues: */ 198/* Soft interrupt function to run the hrtimer queues: */
197extern void hrtimer_run_queues(void); 199extern void hrtimer_run_queues(void);
198 200
199/* Resume notification */
200void hrtimer_notify_resume(void);
201
202/* Bootup initialization: */ 201/* Bootup initialization: */
203extern void __init hrtimers_init(void); 202extern void __init hrtimers_init(void);
204 203