| Subject | Re: [patch 17/28] posix-timers: Convert timer_gettime() to clockid_to_kclock() | From | john stultz <> | Date | Tue, 01 Feb 2011 13:23:16 -0800 |
| |
On Tue, 2011-02-01 at 13:52 +0000, Thomas Gleixner wrote: > plain text document attachment (posix-timers-convert-timer-get.patch) > Set the common function for CLOCK_MONOTONIC and CLOCK_REALTIME kclocks > and use the new decoding function. No need to check for the return > value of it. If we have data corruption in the timer, we explode > somewhere else anyway. Also all kclocks which implement timer_create() > need to provide timer_gettime() as well. > > Signed-off-by: Thomas Gleixner <tglx@linutronix.de> > Cc: John Stultz <john.stultz@linaro.org> > Cc: Richard Cochran <richard.cochran@omicron.at> [snip] > - CLOCK_DISPATCH(timr->it_clock, timer_get, (timr, &cur_setting)); > + kc = clockid_to_kclock(timr->it_clock); > + kc->timer_get(timr, &cur_setting);
Null check again.
thanks -john
|