Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125333
b: refs/heads/master
c: 3d8cbdf
h: refs/heads/master
i:
  125331: a2565c8
v: v3
  • Loading branch information
Rusty Russell authored and Ingo Molnar committed Nov 26, 2008
1 parent 1d2e78a commit b8d2452
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: bf4d83f66476086c6b50dc52aac00d71ad70494e
refs/heads/master: 3d8cbdf8650f44d95333ca645d950832a0653f35
16 changes: 8 additions & 8 deletions trunk/kernel/sched_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,14 @@ static void switched_from_rt(struct rq *rq, struct task_struct *p,
if (!rq->rt.rt_nr_running)
pull_rt_task(rq);
}

static inline void init_sched_rt_class(void)
{
unsigned int i;

for_each_possible_cpu(i)
alloc_cpumask_var(&per_cpu(local_cpu_mask, i), GFP_KERNEL);
}
#endif /* CONFIG_SMP */

/*
Expand Down Expand Up @@ -1552,11 +1560,3 @@ static void print_rt_stats(struct seq_file *m, int cpu)
}
#endif /* CONFIG_SCHED_DEBUG */

/* Note that this is never called for !SMP, but that's OK. */
static inline void init_sched_rt_class(void)
{
unsigned int i;

for_each_possible_cpu(i)
alloc_cpumask_var(&per_cpu(local_cpu_mask, i), GFP_KERNEL);
}

0 comments on commit b8d2452

Please sign in to comment.