Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69081
b: refs/heads/master
c: 2830cf8
h: refs/heads/master
i:
  69079: 683cb9e
v: v3
  • Loading branch information
Srivatsa Vaddagiri authored and Ingo Molnar committed Oct 15, 2007
1 parent 252ad4b commit 799c02e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 2d72376b3af1e7d4d4515ebfd0f4383f2e92c343
refs/heads/master: 2830cf8c90f37526d401f1999250312df970bfa3
5 changes: 4 additions & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,8 @@ void set_task_cpu(struct task_struct *p, unsigned int new_cpu)
{
int old_cpu = task_cpu(p);
struct rq *old_rq = cpu_rq(old_cpu), *new_rq = cpu_rq(new_cpu);
struct cfs_rq *old_cfsrq = task_cfs_rq(p),
*new_cfsrq = cpu_cfs_rq(old_cfsrq, new_cpu);
u64 clock_offset;

clock_offset = old_rq->clock - new_rq->clock;
Expand All @@ -1052,7 +1054,8 @@ void set_task_cpu(struct task_struct *p, unsigned int new_cpu)
if (p->se.block_start)
p->se.block_start -= clock_offset;
#endif
p->se.vruntime -= old_rq->cfs.min_vruntime - new_rq->cfs.min_vruntime;
p->se.vruntime -= old_cfsrq->min_vruntime -
new_cfsrq->min_vruntime;

__set_task_cpu(p, new_cpu);
}
Expand Down

0 comments on commit 799c02e

Please sign in to comment.