Re: [PATCH] sched: Fix compiler errors for NO_SMP machines

From: Ingo Molnar
Date: Sat May 23 2015 - 10:52:35 EST



* Abel Vesa <abelvesa@xxxxxxxxx> wrote:

> Trivial fixes forh machines without SMP.
>
> Signed-off-by: Abel Vesa <abelvesa@xxxxxxxxx>
> ---
> kernel/sched/fair.c | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index e6d32e6..dae3db7 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -672,6 +672,8 @@ static unsigned long task_h_load(struct task_struct *p);
> static inline void __update_task_entity_contrib(struct sched_entity *se);
> static inline void __update_task_entity_utilization(struct sched_entity *se);
>
> +static bool cpu_overutilized(int cpu);
> +
> /* Give new task start runnable values to heavy its load in infant time */
> void init_task_runnable_average(struct task_struct *p)
> {
> @@ -4266,8 +4268,6 @@ static inline void hrtick_update(struct rq *rq)
> }
> #endif
>
> -static bool cpu_overutilized(int cpu);
> -

What tree is this against? Neither the upstream kernel nor
tip:sched/core (the scheduler development tree) has this function.

Thanks,

Ingo
--
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/