sched: Remove resetting exec_start in put_prev_task_rt()
authorHillf Danton <[email protected]>
Fri, 17 Jun 2011 01:55:21 +0000 (21:55 -0400)
committerIngo Molnar <[email protected]>
Sun, 14 Aug 2011 10:00:50 +0000 (12:00 +0200)
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 <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Yong Zhang <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched_rt.c

index 8e189455ed1270eb1e980d9cefebb4474934cacb..70107a39b1ba1eba8da8485bdc8bca7339fe3d34 100644 (file)
@@ -1178,7 +1178,6 @@ static struct task_struct *pick_next_task_rt(struct rq *rq)
 static void put_prev_task_rt(struct rq *rq, struct task_struct *p)
 {
        update_curr_rt(rq);
-       p->se.exec_start = 0;
 
        /*
         * The previous task needs to be made eligible for pushing