diff options
author | Thomas Gleixner <[email protected]> | 2011-02-01 13:51:09 +0000 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2011-02-02 15:28:12 +0100 |
commit | cc785ac22b17ed53e8ff5c1501e422be6d10be3c (patch) | |
tree | c2e1dc5e367f55882f7abf259a2b4a94beefcc79 /kernel/posix-cpu-timers.c | |
parent | 1976945eeaab5fa461735a6225a82c3cf1e65d62 (diff) |
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 <[email protected]>
Cc: John Stultz <[email protected]>
Acked-by: Richard Cochran <[email protected]>
LKML-Reference: <[email protected]>
Diffstat (limited to 'kernel/posix-cpu-timers.c')
0 files changed, 0 insertions, 0 deletions