Re: [PATCH] smpboot: allow excluding cpus from the smpboot threads

2015-04-14 Thread Thomas Gleixner
On Tue, 14 Apr 2015, Chris Metcalf wrote: > On 04/14/2015 11:23 AM, Frederic Weisbecker wrote: > > On Mon, Apr 13, 2015 at 12:06:50PM -0400, Chris Metcalf wrote: > > > Also, I want to ask Linus to pull the tile-specific changes for nohz_full > > > for the tile architecture. This includes a copy of

Re: [PATCH] smpboot: allow excluding cpus from the smpboot threads

2015-04-14 Thread Chris Metcalf
On 04/14/2015 11:23 AM, Frederic Weisbecker wrote: On Mon, Apr 13, 2015 at 12:06:50PM -0400, Chris Metcalf wrote: Also, I want to ask Linus to pull the tile-specific changes for nohz_full for the tile architecture. This includes a copy of the change to add the tick_nohz_full_add_cpus_to() and t

Re: [PATCH] smpboot: allow excluding cpus from the smpboot threads

2015-04-14 Thread Frederic Weisbecker
On Mon, Apr 13, 2015 at 12:06:50PM -0400, Chris Metcalf wrote: > Also, I want to ask Linus to pull the tile-specific changes for nohz_full > for the tile architecture. This includes a copy of the change to add the > tick_nohz_full_add_cpus_to() and tick_nohz_full_remove_cpus_from() > routines here

Re: [PATCH] smpboot: allow excluding cpus from the smpboot threads

2015-04-13 Thread Frederic Weisbecker
On Mon, Apr 13, 2015 at 12:06:50PM -0400, Chris Metcalf wrote: > >>The problem with the code you provided, as I see it, is that the cpumask > >>field being kept in the struct smp_hotplug_thread is awkward to > >>initialize while keeping the default that it doesn't have to be mentioned > >>in the in

Re: [PATCH] smpboot: allow excluding cpus from the smpboot threads

2015-04-13 Thread Chris Metcalf
On 04/12/2015 03:14 PM, Frederic Weisbecker wrote: On Fri, Apr 10, 2015 at 12:33:38PM -0400, Chris Metcalf wrote: On 04/09/2015 09:58 PM, Frederic Weisbecker wrote: On Thu, Apr 09, 2015 at 04:29:01PM -0400, Chris Metcalf wrote: --- a/include/linux/smpboot.h +++ b/include/linux/smpboot.h @@ -27

Re: [PATCH] smpboot: allow excluding cpus from the smpboot threads

2015-04-12 Thread Frederic Weisbecker
On Fri, Apr 10, 2015 at 12:33:38PM -0400, Chris Metcalf wrote: > On 04/09/2015 09:58 PM, Frederic Weisbecker wrote: > >On Thu, Apr 09, 2015 at 04:29:01PM -0400, Chris Metcalf wrote: > >>--- a/include/linux/smpboot.h > >>+++ b/include/linux/smpboot.h > >>@@ -27,6 +27,8 @@ struct smpboot_thread_data;

[PATCH] smpboot: allow excluding cpus from the smpboot threads

2015-04-09 Thread Chris Metcalf
This change allows some cores to be excluded from running the smp_hotplug_thread tasks. The motivating example for this is the watchdog threads, which by default we don't want to run on any enabled nohz_full cores. A new smp_hotplug_thread field is introduced, "valid_cpu", which is an optional po