aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/posix-timers.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2017-05-30 17:15:44 -0400
committerThomas Gleixner <tglx@linutronix.de>2017-06-04 09:40:25 -0400
commitd97bb75ddd2f38068df01da8abf26df78756253c (patch)
tree7aad926faf0415a4eff6bc5a2efe409a81fc3f58 /include/linux/posix-timers.h
parent80105cd0e62ba8a2caf8eebd52f42952c7c04046 (diff)
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
Diffstat (limited to 'include/linux/posix-timers.h')
-rw-r--r--include/linux/posix-timers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h
index 908048f488ae..8f9cca390cdb 100644
--- a/include/linux/posix-timers.h
+++ b/include/linux/posix-timers.h
@@ -56,6 +56,7 @@ struct cpu_timer_list {
56 * @list: List head for binding the timer to signals->posix_timers 56 * @list: List head for binding the timer to signals->posix_timers
57 * @t_hash: Entry in the posix timer hash table 57 * @t_hash: Entry in the posix timer hash table
58 * @it_lock: Lock protecting the timer 58 * @it_lock: Lock protecting the timer
59 * @kclock: Pointer to the k_clock struct handling this timer
59 * @it_clock: The posix timer clock id 60 * @it_clock: The posix timer clock id
60 * @it_id: The posix timer id for identifying the timer 61 * @it_id: The posix timer id for identifying the timer
61 * @it_overrun: The overrun counter for pending signals 62 * @it_overrun: The overrun counter for pending signals
@@ -75,6 +76,7 @@ struct k_itimer {
75 struct list_head list; 76 struct list_head list;
76 struct hlist_node t_hash; 77 struct hlist_node t_hash;
77 spinlock_t it_lock; 78 spinlock_t it_lock;
79 const struct k_clock *kclock;
78 clockid_t it_clock; 80 clockid_t it_clock;
79 timer_t it_id; 81 timer_t it_id;
80 int it_overrun; 82 int it_overrun;