Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245587
b: refs/heads/master
c: 23f41ee
h: refs/heads/master
i:
  245585: 2bdbd9c
  245583: cdad680
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Apr 14, 2011
1 parent da7b3b8 commit 441f201
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b84cb5df1f9ad6da3f214c638d5fb08d0c99de1f
refs/heads/master: 23f41eeb42ce7f6f1210904e49e84718f02cb61c
9 changes: 6 additions & 3 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -2456,8 +2456,11 @@ static void ttwu_activate(struct rq *rq, struct task_struct *p, int en_flags)
wq_worker_waking_up(p, cpu_of(rq));
}

/*
* Mark the task runnable and perform wakeup-preemption.
*/
static void
ttwu_post_activation(struct task_struct *p, struct rq *rq, int wake_flags)
ttwu_do_wakeup(struct rq *rq, struct task_struct *p, int wake_flags)
{
trace_sched_wakeup(p, true);
check_preempt_curr(rq, p, wake_flags);
Expand Down Expand Up @@ -2562,7 +2565,7 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)

ttwu_activate(rq, p, ENQUEUE_WAKEUP | ENQUEUE_WAKING);
out_running:
ttwu_post_activation(p, rq, wake_flags);
ttwu_do_wakeup(rq, p, wake_flags);
success = 1;
__task_rq_unlock(rq);

Expand Down Expand Up @@ -2602,7 +2605,7 @@ static void try_to_wake_up_local(struct task_struct *p)
if (!p->on_rq)
ttwu_activate(rq, p, ENQUEUE_WAKEUP);

ttwu_post_activation(p, rq, 0);
ttwu_do_wakeup(rq, p, 0);
ttwu_stat(p, smp_processor_id(), 0);
out:
raw_spin_unlock(&p->pi_lock);
Expand Down

0 comments on commit 441f201

Please sign in to comment.