From: John Stultz Date: Wed, 15 Dec 2010 03:37:07 +0000 (-0800) Subject: hrtimers: extend hrtimer base code to handle more then 2 clockids X-Git-Tag: v2.6.39-rc1~508^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e06383db9ec591696a06654257474b85bac1f8cb;p=pandora-kernel.git hrtimers: extend hrtimer base code to handle more then 2 clockids The hrtimer code is written mainly with CLOCK_REALTIME and CLOCK_MONOTONIC in mind. These are clockids 0 and 1 resepctively. However, if we are to introduce any new hrtimer bases, using new clockids, we have to skip the cputimers (clockids 2,3) as well as other clockids that may not impelement timers. This patch adds a little bit of indirection between the clockid and the base, so that we can extend the base by one when we add a new clockid at number 7 or so. CC: Jamie Lokier CC: Thomas Gleixner CC: Alexander Shishkin CC: Arve Hjønnevåg Signed-off-by: John Stultz --- Reading git-diff-tree failed