diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-01 13:52:09 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-02 15:28:17 +0100 |
commit | 0aa3975f02ce78f27be3076fbfa3d94ae5a659d5 (patch) | |
tree | 41d8dac84c5742f40c045547a2ba00d1dc7ad0f0 | |
parent | 6761c6702e2c647582e1829abe8cf90794f61d9d (diff) |
posix-timers: Remove CLOCK_DISPATCH leftovers
All users gone. Remove the cruft.
Huge thanks to Richard Cochran who tackled that maze first.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <johnstul@us.ibm.com>
Tested-by: Richard Cochran <richard.cochran@omicron.at>
LKML-Reference: <20110201134419.294620613@linutronix.de>
-rw-r--r-- | kernel/posix-timers.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c index ade7dec49f9..ad154dfd7c5 100644 --- a/kernel/posix-timers.c +++ b/kernel/posix-timers.c @@ -167,28 +167,6 @@ static inline void unlock_timer(struct k_itimer *timr, unsigned long flags) spin_unlock_irqrestore(&timr->it_lock, flags); } -/* - * Call the k_clock hook function if non-null, or the default function. - */ -#define CLOCK_DISPATCH(clock, call, arglist) \ - ((clock) < 0 ? posix_cpu_##call arglist : \ - (posix_clocks[clock].call != NULL \ - ? (*posix_clocks[clock].call) arglist : common_##call arglist)) - -/* - * Return nonzero if we know a priori this clockid_t value is bogus. - */ -static inline int invalid_clockid(const clockid_t which_clock) -{ - if (which_clock < 0) /* CPU clock, posix_cpu_* will check it */ - return 0; - if ((unsigned) which_clock >= MAX_CLOCKS) - return 1; - if (posix_clocks[which_clock].clock_getres != NULL) - return 0; - return 1; -} - /* Get clock_realtime */ static int posix_clock_realtime_get(clockid_t which_clock, struct timespec *tp) { |