aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-10-04 05:08:16 -0400
committerIngo Molnar <mingo@elte.hu>2011-10-04 05:09:08 -0400
commit22f92bacbeea24b20e447444c28e7cad9f1ac3f8 (patch)
tree5c3f2346804a186aa2d954f078fd2f4d44bcc26e /kernel/sched.c
parent557ab425429a5123d37f412ce3e6d6137cb621f8 (diff)
parent0f86267b79bc6e357b8606077c7f70239045ea9c (diff)
Merge branch 'linus' into sched/core
Merge reason: pick up the latest fixes. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 6b0ae522f927..c5cf15e1eb57 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3866,30 +3866,6 @@ unsigned long long task_sched_runtime(struct task_struct *p)
3866} 3866}
3867 3867
3868/* 3868/*
3869 * Return sum_exec_runtime for the thread group.
3870 * In case the task is currently running, return the sum plus current's
3871 * pending runtime that have not been accounted yet.
3872 *
3873 * Note that the thread group might have other running tasks as well,
3874 * so the return value not includes other pending runtime that other
3875 * running tasks might have.
3876 */
3877unsigned long long thread_group_sched_runtime(struct task_struct *p)
3878{
3879 struct task_cputime totals;
3880 unsigned long flags;
3881 struct rq *rq;
3882 u64 ns;
3883
3884 rq = task_rq_lock(p, &flags);
3885 thread_group_cputime(p, &totals);
3886 ns = totals.sum_exec_runtime + do_task_delta_exec(p, rq);
3887 task_rq_unlock(rq, p, &flags);
3888
3889 return ns;
3890}
3891
3892/*
3893 * Account user cpu time to a process. 3869 * Account user cpu time to a process.
3894 * @p: the process that the cpu time gets accounted to 3870 * @p: the process that the cpu time gets accounted to
3895 * @cputime: the cpu time spent in user space since the last update 3871 * @cputime: the cpu time spent in user space since the last update
@@ -4513,7 +4489,7 @@ static inline void sched_submit_work(struct task_struct *tsk)
4513 blk_schedule_flush_plug(tsk); 4489 blk_schedule_flush_plug(tsk);
4514} 4490}
4515 4491
4516asmlinkage void schedule(void) 4492asmlinkage void __sched schedule(void)
4517{ 4493{
4518 struct task_struct *tsk = current; 4494 struct task_struct *tsk = current;
4519 4495