diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2007-02-16 01:28:00 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-16 08:13:59 -0800 |
commit | d316c57ff6bfad9557462b9100f25c6260d2b774 (patch) | |
tree | f77a04aab5c39c416f52ff5ac9396da5a6b93759 /include/linux/hrtimer.h | |
parent | e05d723f98595b2f4d368f63636a997d98703304 (diff) | |
download | op-kernel-dev-d316c57ff6bfad9557462b9100f25c6260d2b774.zip op-kernel-dev-d316c57ff6bfad9557462b9100f25c6260d2b774.tar.gz |
[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.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index 9041405..a759636 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h @@ -144,6 +144,8 @@ struct hrtimer_cpu_base { * is expired in the next softirq when the clock was advanced. */ #define clock_was_set() do { } while (0) +extern ktime_t ktime_get(void); +extern ktime_t ktime_get_real(void); /* Exported timer functions: */ @@ -196,9 +198,6 @@ extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, /* Soft interrupt function to run the hrtimer queues: */ extern void hrtimer_run_queues(void); -/* Resume notification */ -void hrtimer_notify_resume(void); - /* Bootup initialization: */ extern void __init hrtimers_init(void); |