aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 3ab08e4bb6b8..3b3efaddd953 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -470,6 +470,11 @@ struct pacct_struct {
470 unsigned long ac_minflt, ac_majflt; 470 unsigned long ac_minflt, ac_majflt;
471}; 471};
472 472
473struct cpu_itimer {
474 cputime_t expires;
475 cputime_t incr;
476};
477
473/** 478/**
474 * struct task_cputime - collected CPU time counts 479 * struct task_cputime - collected CPU time counts
475 * @utime: time spent in user mode, in &cputime_t units 480 * @utime: time spent in user mode, in &cputime_t units
@@ -564,9 +569,12 @@ struct signal_struct {
564 struct pid *leader_pid; 569 struct pid *leader_pid;
565 ktime_t it_real_incr; 570 ktime_t it_real_incr;
566 571
567 /* ITIMER_PROF and ITIMER_VIRTUAL timers for the process */ 572 /*
568 cputime_t it_prof_expires, it_virt_expires; 573 * ITIMER_PROF and ITIMER_VIRTUAL timers for the process, we use
569 cputime_t it_prof_incr, it_virt_incr; 574 * CPUCLOCK_PROF and CPUCLOCK_VIRT for indexing array as these
575 * values are defined to 0 and 1 respectively
576 */
577 struct cpu_itimer it[2];
570 578
571 /* 579 /*
572 * Thread group totals for process CPU timers. 580 * Thread group totals for process CPU timers.