From: Thomas Gleixner Date: Tue, 1 Feb 2011 13:51:06 +0000 (+0000) Subject: posix-timers: Introduce clock_posix_cpu X-Git-Tag: v2.6.39-rc1~508^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1976945eeaab5fa461735a6225a82c3cf1e65d62;p=pandora-kernel.git posix-timers: Introduce clock_posix_cpu The CLOCK_DISPATCH() macro is a horrible magic. We call common functions if a function pointer is not set. That's just backwards. To support dynamic file decriptor based clocks we need to cleanup that dispatch logic. Create a k_clock struct clock_posix_cpu which has all the posix-cpu-timer functions filled in. After the cleanup the functions can be made static. Signed-off-by: Thomas Gleixner Acked-by: John Stultz Tested-by: Richard Cochran LKML-Reference: <20110201134417.841974553@linutronix.de> --- Reading git-diff-tree failed