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 3cbc6c0be666..cbf2a3b46280 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -493,6 +493,13 @@ struct pacct_struct { | |||
| 493 | unsigned long ac_minflt, ac_majflt; | 493 | unsigned long ac_minflt, ac_majflt; |
| 494 | }; | 494 | }; |
| 495 | 495 | ||
| 496 | struct cpu_itimer { | ||
| 497 | cputime_t expires; | ||
| 498 | cputime_t incr; | ||
| 499 | u32 error; | ||
| 500 | u32 incr_error; | ||
| 501 | }; | ||
| 502 | |||
| 496 | /** | 503 | /** |
| 497 | * struct task_cputime - collected CPU time counts | 504 | * struct task_cputime - collected CPU time counts |
| 498 | * @utime: time spent in user mode, in &cputime_t units | 505 | * @utime: time spent in user mode, in &cputime_t units |
| @@ -587,9 +594,12 @@ struct signal_struct { | |||
| 587 | struct pid *leader_pid; | 594 | struct pid *leader_pid; |
| 588 | ktime_t it_real_incr; | 595 | ktime_t it_real_incr; |
| 589 | 596 | ||
| 590 | /* ITIMER_PROF and ITIMER_VIRTUAL timers for the process */ | 597 | /* |
| 591 | cputime_t it_prof_expires, it_virt_expires; | 598 | * ITIMER_PROF and ITIMER_VIRTUAL timers for the process, we use |
| 592 | cputime_t it_prof_incr, it_virt_incr; | 599 | * CPUCLOCK_PROF and CPUCLOCK_VIRT for indexing array as these |
| 600 | * values are defined to 0 and 1 respectively | ||
| 601 | */ | ||
| 602 | struct cpu_itimer it[2]; | ||
| 593 | 603 | ||
| 594 | /* | 604 | /* |
| 595 | * Thread group totals for process CPU timers. | 605 | * Thread group totals for process CPU timers. |
