]> Git Repo - linux.git/blobdiff - include/linux/sched.h
Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / include / linux / sched.h
index 2d1e1a1228ef9c97eb79c1f99cc7cd1c3bbfd26c..f118809c953ff137b2a97e0d9e674b2836ee331a 100644 (file)
@@ -527,8 +527,8 @@ struct thread_group_cputimer {
  */
 struct signal_struct {
        atomic_t                sigcnt;
-       atomic_t                count;
        atomic_t                live;
+       int                     nr_threads;
 
        wait_queue_head_t       wait_chldexit;  /* for wait4() */
 
@@ -2147,6 +2147,11 @@ extern bool current_is_single_threaded(void);
 #define while_each_thread(g, t) \
        while ((t = next_thread(t)) != g)
 
+static inline int get_nr_threads(struct task_struct *tsk)
+{
+       return tsk->signal->nr_threads;
+}
+
 /* de_thread depends on thread_group_leader not being a pid based check */
 #define thread_group_leader(p) (p == p->group_leader)
 
@@ -2393,10 +2398,6 @@ static inline void thread_group_cputime_init(struct signal_struct *sig)
        spin_lock_init(&sig->cputimer.lock);
 }
 
-static inline void thread_group_cputime_free(struct signal_struct *sig)
-{
-}
-
 /*
  * Reevaluate whether the task has signals pending delivery.
  * Wake the task if so.
This page took 0.034704 seconds and 4 git commands to generate.