aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_rt.c
diff options
context:
space:
mode:
authorHillf Danton <dhillf@gmail.com>2011-06-16 21:55:21 -0400
committerIngo Molnar <mingo@elte.hu>2011-08-14 06:00:50 -0400
commit1812a643ccbfeb61a00a7f0d7219606e63d8815b (patch)
tree874b7db2d6382e32160127b7e880007b9c8e7c87 /kernel/sched_rt.c
parent311e800e16f63d909136a64ed17ca353a160be59 (diff)
sched: Remove resetting exec_start in put_prev_task_rt()
There's no reason to clean the exec_start in put_prev_task_rt() as it is reset when the task gets back to the run queue. This saves us doing a store() in the fast path. Signed-off-by: Hillf Danton <dhillf@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Yong Zhang <yong.zhang0@gmail.com> Link: http://lkml.kernel.org/r/BANLkTimqWD=q6YnSDi-v9y=LMWecgEzEWg@mail.gmail.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r--kernel/sched_rt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index 8e189455ed12..70107a39b1ba 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -1178,7 +1178,6 @@ static struct task_struct *pick_next_task_rt(struct rq *rq)
1178static void put_prev_task_rt(struct rq *rq, struct task_struct *p) 1178static void put_prev_task_rt(struct rq *rq, struct task_struct *p)
1179{ 1179{
1180 update_curr_rt(rq); 1180 update_curr_rt(rq);
1181 p->se.exec_start = 0;
1182 1181
1183 /* 1182 /*
1184 * The previous task needs to be made eligible for pushing 1183 * The previous task needs to be made eligible for pushing