Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58275
b: refs/heads/master
c: 138a8ae
h: refs/heads/master
i:
  58273: f809a03
  58271: fa36a9d
v: v3
  • Loading branch information
Ingo Molnar committed Jul 9, 2007
1 parent 8cf1955 commit bd832fc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41b86e9c510ae66639bf29d3201e1d2384a7fde6
refs/heads/master: 138a8aeb5b9e5c5abd5e5ec22b6d1848e7e9c50b
12 changes: 12 additions & 0 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,18 @@ static inline unsigned long long rq_clock(struct rq *rq)
#define task_rq(p) cpu_rq(task_cpu(p))
#define cpu_curr(cpu) (cpu_rq(cpu)->curr)

#ifdef CONFIG_FAIR_GROUP_SCHED
/* Change a task's ->cfs_rq if it moves across CPUs */
static inline void set_task_cfs_rq(struct task_struct *p)
{
p->se.cfs_rq = &task_rq(p)->cfs;
}
#else
static inline void set_task_cfs_rq(struct task_struct *p)
{
}
#endif

#ifndef prepare_arch_switch
# define prepare_arch_switch(next) do { } while (0)
#endif
Expand Down

0 comments on commit bd832fc

Please sign in to comment.