]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/sched.h
sched, cputime: Introduce thread_group_times()
[net-next-2.6.git] / include / linux / sched.h
index dff85e58264e92c1589b7302e5bd9c6c4d0546ae..34238bd10ebf72eae34217200e267cffe7a13178 100644 (file)
@@ -624,6 +624,9 @@ struct signal_struct {
        cputime_t utime, stime, cutime, cstime;
        cputime_t gtime;
        cputime_t cgtime;
+#ifndef CONFIG_VIRT_CPU_ACCOUNTING
+       cputime_t prev_utime, prev_stime;
+#endif
        unsigned long nvcsw, nivcsw, cnvcsw, cnivcsw;
        unsigned long min_flt, maj_flt, cmin_flt, cmaj_flt;
        unsigned long inblock, oublock, cinblock, coublock;
@@ -1723,6 +1726,7 @@ static inline void put_task_struct(struct task_struct *t)
 }
 
 extern void task_times(struct task_struct *p, cputime_t *ut, cputime_t *st);
+extern void thread_group_times(struct task_struct *p, cputime_t *ut, cputime_t *st);
 
 /*
  * Per process flags