[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151007132403.GA24924@redhat.com>
Date: Wed, 7 Oct 2015 15:24:03 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: heiko.carstens@...ibm.com, linux-kernel@...r.kernel.org,
Tejun Heo <tj@...nel.org>, Ingo Molnar <mingo@...nel.org>,
Rik van Riel <riel@...hat.com>
Subject: Re: [RFC][PATCH] sched: Start stopper early
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists