aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/posix-timers.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2017-05-30 23:15:48 +0200
committerThomas Gleixner <tglx@linutronix.de>2017-06-04 15:40:26 +0200
commit21e55c1f83880a56360287c00f2b5cd5e5a4a912 (patch)
treea67f1d2979fc4b850cef4d950fe80cb414d8a77e /include/linux/posix-timers.h
parentposix-timers: Use timer_rearm() callback in posixtimer_rearm() (diff)
downloadlinux-dev-21e55c1f83880a56360287c00f2b5cd5e5a4a912.tar.xz
linux-dev-21e55c1f83880a56360287c00f2b5cd5e5a4a912.zip
posix-timers: Add active flag to k_itimer
Keep track of the activation state of posix timers. This is a preparatory change for making common_timer_get() usable by both hrtimer and alarm timer implementations. 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.967783982@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 771e5f788c90..667095dbcd37 100644
--- a/include/linux/posix-timers.h
+++ b/include/linux/posix-timers.h
@@ -59,6 +59,7 @@ struct cpu_timer_list {
* @kclock: Pointer to the k_clock struct handling this timer
* @it_clock: The posix timer clock id
* @it_id: The posix timer id for identifying the timer
+ * @it_active: Marker that timer is active
* @it_overrun: The overrun counter for pending signals
* @it_overrun_last: The overrun at the time of the last delivered signal
* @it_requeue_pending: Indicator that timer waits for being requeued on
@@ -79,6 +80,7 @@ struct k_itimer {
const struct k_clock *kclock;
clockid_t it_clock;
timer_t it_id;
+ int it_active;
int it_overrun;
int it_overrun_last;
int it_requeue_pending;