aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-08-09 05:16:51 -0400
committerIngo Molnar <mingo@elte.hu>2007-08-09 05:16:51 -0400
commitbdd4dfa89c1e3e1379729b9edec1526b3ecc25ec (patch)
tree9bf9002699184a1171522735b2be92bead6df02e /kernel/sched_fair.c
parent2e1cb74a501c4b1bca5e55dabff24f267349193c (diff)
sched: remove the 'u64 now' local variables
final step: remove all (now superfluous) 'u64 now' variables. ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 4a2cbde1057f..eb7ca49c3260 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -667,10 +667,8 @@ static void entity_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr)
667{ 667{
668 struct rq *rq = rq_of(cfs_rq); 668 struct rq *rq = rq_of(cfs_rq);
669 struct sched_entity *next; 669 struct sched_entity *next;
670 u64 now;
671 670
672 __update_rq_clock(rq); 671 __update_rq_clock(rq);
673 now = rq->clock;
674 672
675 /* 673 /*
676 * Dequeue and enqueue the task to update its 674 * Dequeue and enqueue the task to update its
@@ -820,10 +818,8 @@ static void dequeue_task_fair(struct rq *rq, struct task_struct *p, int sleep)
820static void yield_task_fair(struct rq *rq, struct task_struct *p) 818static void yield_task_fair(struct rq *rq, struct task_struct *p)
821{ 819{
822 struct cfs_rq *cfs_rq = task_cfs_rq(p); 820 struct cfs_rq *cfs_rq = task_cfs_rq(p);
823 u64 now;
824 821
825 __update_rq_clock(rq); 822 __update_rq_clock(rq);
826 now = rq->clock;
827 /* 823 /*
828 * Dequeue and enqueue the task to update its 824 * Dequeue and enqueue the task to update its
829 * position within the tree: 825 * position within the tree:
@@ -1062,11 +1058,9 @@ static void set_curr_task_fair(struct rq *rq)
1062{ 1058{
1063 struct task_struct *curr = rq->curr; 1059 struct task_struct *curr = rq->curr;
1064 struct sched_entity *se = &curr->se; 1060 struct sched_entity *se = &curr->se;
1065 u64 now;
1066 struct cfs_rq *cfs_rq; 1061 struct cfs_rq *cfs_rq;
1067 1062
1068 update_rq_clock(rq); 1063 update_rq_clock(rq);
1069 now = rq->clock;
1070 1064
1071 for_each_sched_entity(se) { 1065 for_each_sched_entity(se) {
1072 cfs_rq = cfs_rq_of(se); 1066 cfs_rq = cfs_rq_of(se);