]> git.karo-electronics.de Git - linux-beck.git/blobdiff - include/linux/sched.h
posix_cpu_timer: Reduce unnecessary sighand lock contention
[linux-beck.git] / include / linux / sched.h
index 6c8504ade2ba113b06dc2a7b76af18b7158fecb9..f87559df5b756857b5e9a26f1a8d95942af5d671 100644 (file)
@@ -619,6 +619,8 @@ struct task_cputime_atomic {
  * @cputime_atomic:    atomic thread group interval timers.
  * @running:           true when there are timers running and
  *                     @cputime_atomic receives updates.
+ * @checking_timer:    true when a thread in the group is in the
+ *                     process of checking for thread group timers.
  *
  * This structure contains the version of task_cputime, above, that is
  * used for thread group CPU timer calculations.
@@ -626,6 +628,7 @@ struct task_cputime_atomic {
 struct thread_group_cputimer {
        struct task_cputime_atomic cputime_atomic;
        bool running;
+       bool checking_timer;
 };
 
 #include <linux/rwsem.h>