Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277409
b: refs/heads/master
c: 4fc420c
h: refs/heads/master
i:
  277407: 6f115b4
v: v3
  • Loading branch information
Daisuke Nishimura authored and Ingo Molnar committed Dec 21, 2011
1 parent 3001622 commit a55d486
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 11534ec5b6cea13ae38d31799d2a5290c5d724af
refs/heads/master: 4fc420c91f53e0a9f95665c6b14a1983716081e7
7 changes: 5 additions & 2 deletions trunk/kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -5190,8 +5190,8 @@ static void task_tick_fair(struct rq *rq, struct task_struct *curr, int queued)
*/
static void task_fork_fair(struct task_struct *p)
{
struct cfs_rq *cfs_rq = task_cfs_rq(current);
struct sched_entity *se = &p->se, *curr = cfs_rq->curr;
struct cfs_rq *cfs_rq;
struct sched_entity *se = &p->se, *curr;
int this_cpu = smp_processor_id();
struct rq *rq = this_rq();
unsigned long flags;
Expand All @@ -5200,6 +5200,9 @@ static void task_fork_fair(struct task_struct *p)

update_rq_clock(rq);

cfs_rq = task_cfs_rq(current);
curr = cfs_rq->curr;

if (unlikely(task_cpu(p) != this_cpu)) {
rcu_read_lock();
__set_task_cpu(p, this_cpu);
Expand Down

0 comments on commit a55d486

Please sign in to comment.