aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-07-09 12:51:58 -0400
committerIngo Molnar <mingo@elte.hu>2007-07-09 12:51:58 -0400
commit41b86e9c510ae66639bf29d3201e1d2384a7fde6 (patch)
treef340b94f53be08e2fbba2344deb985f9ecb4a036 /include/linux/sched.h
parent20d315d42aed95423a7203e1d7e84086004b5a00 (diff)
sched: make posix-cpu-timers use CFS's accounting information
update the posix-cpu-timers code to use CFS's CPU accounting information. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 995eb407c234..3e7f1890e55d 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -482,7 +482,8 @@ struct signal_struct {
482 * from jiffies_to_ns(utime + stime) if sched_clock uses something 482 * from jiffies_to_ns(utime + stime) if sched_clock uses something
483 * other than jiffies.) 483 * other than jiffies.)
484 */ 484 */
485 unsigned long long sched_time; 485 unsigned long sched_time;
486 unsigned long long sum_sched_runtime;
486 487
487 /* 488 /*
488 * We don't bother to synchronize most readers of this at all, 489 * We don't bother to synchronize most readers of this at all,
@@ -1308,7 +1309,7 @@ static inline int set_cpus_allowed(struct task_struct *p, cpumask_t new_mask)
1308 1309
1309extern unsigned long long sched_clock(void); 1310extern unsigned long long sched_clock(void);
1310extern unsigned long long 1311extern unsigned long long
1311current_sched_time(const struct task_struct *current_task); 1312task_sched_runtime(struct task_struct *task);
1312 1313
1313/* sched_exec is called by processes performing an exec */ 1314/* sched_exec is called by processes performing an exec */
1314#ifdef CONFIG_SMP 1315#ifdef CONFIG_SMP