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