From: Thomas Gleixner Date: Tue, 1 Feb 2011 13:51:09 +0000 (+0000) Subject: posix-timers: Introduce clockid_to_kclock() X-Git-Tag: v2.6.39-rc1~508^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc785ac22b17ed53e8ff5c1501e422be6d10be3c;p=pandora-kernel.git 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 Cc: John Stultz Acked-by: Richard Cochran LKML-Reference: <20110201134417.938447839@linutronix.de> --- Reading git-diff-tree failed