Re: [RFC][PATCH] sched: Start stopper early

From: Oleg Nesterov
Date: Wed Oct 07 2015 - 09:27:28 EST


Damn sorry for noise ;)

On 10/07, Oleg Nesterov wrote:
>
> +void stop_machine_park(int cpu)
> +{
> + struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu);
> +
> + spin_lock(&stopper->lock);
> + stopper->enabled = false;
> + spin_unlock(&stopper->lock);

Of course, it should also do kthread_park(current).

Oleg.

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