Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269138
b: refs/heads/master
c: c37495f
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Aug 14, 2011
1 parent 9868f2c commit 76a4ce3
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: 1812a643ccbfeb61a00a7f0d7219606e63d8815b
refs/heads/master: c37495fd0f64fc139b5a07d242bcb485174d1206
9 changes: 6 additions & 3 deletions trunk/kernel/sched_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1017,10 +1017,12 @@ select_task_rq_rt(struct task_struct *p, int sd_flag, int flags)
struct rq *rq;
int cpu;

if (sd_flag != SD_BALANCE_WAKE)
return smp_processor_id();

cpu = task_cpu(p);

/* For anything but wake ups, just return the task_cpu */
if (sd_flag != SD_BALANCE_WAKE && sd_flag != SD_BALANCE_FORK)
goto out;

rq = cpu_rq(cpu);

rcu_read_lock();
Expand Down Expand Up @@ -1059,6 +1061,7 @@ select_task_rq_rt(struct task_struct *p, int sd_flag, int flags)
}
rcu_read_unlock();

out:
return cpu;
}

Expand Down

0 comments on commit 76a4ce3

Please sign in to comment.