Re: [RFC][PATCH v5 07/14] sched: get CPU's activity statistic

From: Peter Zijlstra
Date: Tue Nov 12 2013 - 05:36:24 EST


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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/