On Fri, Oct 18, 2013 at 01:52:20PM +0200, Vincent Guittot wrote:
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index db9b871..7e26f65 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -179,6 +179,11 @@ void sched_init_granularity(void) } #ifdef CONFIG_SMP +static unsigned long available_of(int cpu) +{
- return cpu_rq(cpu)->cpu_available;
+}
#ifdef CONFIG_SCHED_PACKING_TASKS /*
- Save the id of the optimal CPU that should be used to pack small tasks
This hunk wants to be in the previous patch, as I'm fairly sure I saw this function used there.