aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-09-16 07:47:58 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-16 10:44:33 -0400
commit5a9b86f647a56862cdc0a1362bfb015ae921af7f (patch)
tree656652186f9f5198e73139f6362afd7b6584eca1 /kernel/sched_fair.c
parent5158f4e4428c6b8d52796b3b460e95796123a114 (diff)
sched: Rename flags to wake_flags
For consistencies sake, rename the argument (again). Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> 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, 3 insertions, 3 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index aeff40e7ec1b..c741cd9d38de 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1551,12 +1551,12 @@ static void set_next_buddy(struct sched_entity *se)
1551/* 1551/*
1552 * Preempt the current task with a newly woken task if needed: 1552 * Preempt the current task with a newly woken task if needed:
1553 */ 1553 */
1554static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int flags) 1554static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int wake_flags)
1555{ 1555{
1556 struct task_struct *curr = rq->curr; 1556 struct task_struct *curr = rq->curr;
1557 struct sched_entity *se = &curr->se, *pse = &p->se; 1557 struct sched_entity *se = &curr->se, *pse = &p->se;
1558 struct cfs_rq *cfs_rq = task_cfs_rq(curr); 1558 struct cfs_rq *cfs_rq = task_cfs_rq(curr);
1559 int sync = flags & WF_SYNC; 1559 int sync = wake_flags & WF_SYNC;
1560 1560
1561 update_curr(cfs_rq); 1561 update_curr(cfs_rq);
1562 1562
@@ -1582,7 +1582,7 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int flags
1582 */ 1582 */
1583 if (sched_feat(LAST_BUDDY) && likely(se->on_rq && curr != rq->idle)) 1583 if (sched_feat(LAST_BUDDY) && likely(se->on_rq && curr != rq->idle))
1584 set_last_buddy(se); 1584 set_last_buddy(se);
1585 if (sched_feat(NEXT_BUDDY) && !(flags & WF_FORK)) 1585 if (sched_feat(NEXT_BUDDY) && !(wake_flags & WF_FORK))
1586 set_next_buddy(pse); 1586 set_next_buddy(pse);
1587 1587
1588 /* 1588 /*