aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/posix-timers.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-01 08:52:09 -0500
committerThomas Gleixner <tglx@linutronix.de>2011-02-02 09:28:17 -0500
commit0aa3975f02ce78f27be3076fbfa3d94ae5a659d5 (patch)
tree41d8dac84c5742f40c045547a2ba00d1dc7ad0f0 /kernel/posix-timers.c
parent6761c6702e2c647582e1829abe8cf90794f61d9d (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>
Diffstat (limited to 'kernel/posix-timers.c')
-rw-r--r--kernel/posix-timers.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c
index ade7dec49f96..ad154dfd7c51 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)
167 spin_unlock_irqrestore(&timr->it_lock, flags); 167 spin_unlock_irqrestore(&timr->it_lock, flags);
168} 168}
169 169
170/*
171 * Call the k_clock hook function if non-null, or the default function.
172 */
173#define CLOCK_DISPATCH(clock, call, arglist) \
174 ((clock) < 0 ? posix_cpu_##call arglist : \
175 (posix_clocks[clock].call != NULL \
176 ? (*posix_clocks[clock].call) arglist : common_##call arglist))
177
178/*
179 * Return nonzero if we know a priori this clockid_t value is bogus.
180 */
181static inline int invalid_clockid(const clockid_t which_clock)
182{
183 if (which_clock < 0) /* CPU clock, posix_cpu_* will check it */
184 return 0;
185 if ((unsigned) which_clock >= MAX_CLOCKS)
186 return 1;
187 if (posix_clocks[which_clock].clock_getres != NULL)
188 return 0;
189 return 1;
190}
191
192/* Get clock_realtime */ 170/* Get clock_realtime */
193static int posix_clock_realtime_get(clockid_t which_clock, struct timespec *tp) 171static int posix_clock_realtime_get(clockid_t which_clock, struct timespec *tp)
194{ 172{