]> git.baikalelectronics.ru Git - kernel.git/commit
hrtimer: optimize the softirq time optimization
authorThomas Gleixner <tglx@linutronix.de>
Sat, 19 Apr 2008 19:31:26 +0000 (21:31 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 21 Apr 2008 05:59:51 +0000 (07:59 +0200)
commit8affd873072e3f3fea53185d7f43eb20826fdff6
tree5adb390434df0d95497763177d729c5d6cc98d20
parent00272737c527c1db5fd068486d72510ed5039d8d
hrtimer: optimize the softirq time optimization

The previous optimization did not take the case into account where a
clock provides its own softirq_get_time() function.

Check for the availablitiy of the clock get time function first and
then check if we need to retrieve the time for both clocks via
hrtimer_softirq_gettime() to avoid a double evaluation of time in that
case as well.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/hrtimer.c