Re: [PATCH] sched: Allow per-cpu kernel threads to run on online && !active

2016-03-03 Thread Thomas Gleixner
On Thu, 3 Mar 2016, Thomas Gleixner wrote: > On Thu, 3 Mar 2016, Peter Zijlstra wrote: > > > +++ b/kernel/sched/core.c > > > @@ -5726,23 +5726,6 @@ static int sched_cpu_active(struct notif > > > case CPU_STARTING: > > > set_cpu_rq_start_time(); > > > > If we stick that in notify_start

Re: [PATCH] sched: Allow per-cpu kernel threads to run on online && !active

2016-03-03 Thread Thomas Gleixner
On Thu, 3 Mar 2016, Peter Zijlstra wrote: > > +++ b/kernel/sched/core.c > > @@ -5726,23 +5726,6 @@ static int sched_cpu_active(struct notif > > case CPU_STARTING: > > set_cpu_rq_start_time(); > > If we stick that in notify_starting() we can kill all of this. Yep. I'm going to kill

Re: [PATCH] sched: Allow per-cpu kernel threads to run on online && !active

2016-03-03 Thread Peter Zijlstra
On Thu, Mar 03, 2016 at 12:43:53PM +0100, Thomas Gleixner wrote: > Subject: cpu/hotplug: Handle cpu active as last state > From: Thomas Gleixner > Date: Thu, 03 Mar 2016 12:33:37 +0100 > > We want to make sure that everything is initialized before we allow scheduling > of arbitrary work on a upc

Re: [PATCH] sched: Allow per-cpu kernel threads to run on online && !active

2016-03-03 Thread Thomas Gleixner
On Tue, 1 Mar 2016, Peter Zijlstra wrote: > Tested-by: Thomas Gleixner Works nicely especially when we move the set_cpu_active() calls as the last state in the state machine. See patch below. Thanks, tglx 8<-- Subject: cpu/hotplug: Handle cpu active as last sta

[PATCH] sched: Allow per-cpu kernel threads to run on online && !active

2016-03-01 Thread Peter Zijlstra
In order to enable symmetric hotplug, we must mirror the online && !active state of cpu-down on the cpu-up side. However, to retain sanity, limit this state to per-cpu kthreads. Aside from the change to set_cpus_allowed_ptr(), which allow moving the per-cpu kthreads on, the other critical piece