aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/mmtimer.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-01 13:51:09 +0000
committerThomas Gleixner <tglx@linutronix.de>2011-02-02 15:28:12 +0100
commitcc785ac22b17ed53e8ff5c1501e422be6d10be3c (patch)
treec2e1dc5e367f55882f7abf259a2b4a94beefcc79 /drivers/char/mmtimer.c
parentposix-timers: Introduce clock_posix_cpu (diff)
downloadlinux-dev-cc785ac22b17ed53e8ff5c1501e422be6d10be3c.tar.xz
linux-dev-cc785ac22b17ed53e8ff5c1501e422be6d10be3c.zip
posix-timers: Introduce clockid_to_kclock()
New function to find the kclock for a given clockid. Returns a pointer to clock_posix_cpu if clockid < 0. If clockid >= MAXCLOCK or if the clock_getres pointer is not set it returns NULL. For valid clocks it returns a pointer to the matching posix_clock. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: John Stultz <johnstul@us.ibm.com> Acked-by: Richard Cochran <richard.cochran@omicron.at> LKML-Reference: <20110201134417.938447839@linutronix.de>
Diffstat (limited to 'drivers/char/mmtimer.c')
0 files changed, 0 insertions, 0 deletions