Commit 5a9b86f6 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

sched: Rename flags to wake_flags

For consistencies sake, rename the argument (again).
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 5158f4e4
...@@ -1551,12 +1551,12 @@ static void set_next_buddy(struct sched_entity *se) ...@@ -1551,12 +1551,12 @@ static void set_next_buddy(struct sched_entity *se)
/* /*
* Preempt the current task with a newly woken task if needed: * Preempt the current task with a newly woken task if needed:
*/ */
static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int flags) static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int wake_flags)
{ {
struct task_struct *curr = rq->curr; struct task_struct *curr = rq->curr;
struct sched_entity *se = &curr->se, *pse = &p->se; struct sched_entity *se = &curr->se, *pse = &p->se;
struct cfs_rq *cfs_rq = task_cfs_rq(curr); struct cfs_rq *cfs_rq = task_cfs_rq(curr);
int sync = flags & WF_SYNC; int sync = wake_flags & WF_SYNC;
update_curr(cfs_rq); update_curr(cfs_rq);
...@@ -1582,7 +1582,7 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int flags ...@@ -1582,7 +1582,7 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int flags
*/ */
if (sched_feat(LAST_BUDDY) && likely(se->on_rq && curr != rq->idle)) if (sched_feat(LAST_BUDDY) && likely(se->on_rq && curr != rq->idle))
set_last_buddy(se); set_last_buddy(se);
if (sched_feat(NEXT_BUDDY) && !(flags & WF_FORK)) if (sched_feat(NEXT_BUDDY) && !(wake_flags & WF_FORK))
set_next_buddy(pse); set_next_buddy(pse);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment