posix-timers: Store k_clock pointer in k_itimer
authorThomas Gleixner <tglx@linutronix.de>
Tue, 30 May 2017 21:15:44 +0000 (23:15 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 4 Jun 2017 13:40:25 +0000 (15:40 +0200)
commitd97bb75ddd2f38068df01da8abf26df78756253c
tree7aad926faf0415a4eff6bc5a2efe409a81fc3f58
parent80105cd0e62ba8a2caf8eebd52f42952c7c04046
posix-timers: Store k_clock pointer in k_itimer

Having the k_clock pointer in the k_itimer struct avoids the lookup in
several code pathes and makes the next steps of unification of the hrtimer
and alarmtimer based posix timers simpler.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: John Stultz <john.stultz@linaro.org>
Link: http://lkml.kernel.org/r/20170530211656.641222072@linutronix.de
include/linux/posix-timers.h
kernel/time/posix-cpu-timers.c
kernel/time/posix-timers.c