aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorFrederic Weisbecker <frederic@kernel.org>2017-10-26 22:42:36 -0400
committerIngo Molnar <mingo@kernel.org>2017-10-27 03:55:30 -0400
commit6f1982fedd59856bcc42a9b521be4c3ffd2f60a7 (patch)
tree47b01dba865b5ed2d4b889787a0660c2911ccd5b /kernel/time
parentde201559df872f83d0c08fb4effe3efd28e6cbc8 (diff)
sched/isolation: Handle the nohz_full= parameter
We want to centralize the isolation management, done by the housekeeping subsystem. Therefore we need to handle the nohz_full= parameter from there. Since nohz_full= so far has involved unbound timers, watchdog, RCU and tilegx NAPI isolation, we keep that default behaviour. nohz_full= will be deprecated in the future. We want to control the isolation features from the isolcpus= parameter. Signed-off-by: Frederic Weisbecker <frederic@kernel.org> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: Chris Metcalf <cmetcalf@mellanox.com> Cc: Christoph Lameter <cl@linux.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Luiz Capitulino <lcapitulino@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rik van Riel <riel@redhat.com> Cc: Wanpeng Li <kernellwp@gmail.com> Link: http://lkml.kernel.org/r/1509072159-31808-10-git-send-email-frederic@kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/tick-sched.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 27d7d522ac4e..69f3dbe38984 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -385,20 +385,13 @@ out:
385 local_irq_restore(flags); 385 local_irq_restore(flags);
386} 386}
387 387
388/* Parse the boot-time nohz CPU list from the kernel parameters. */ 388/* Get the boot-time nohz CPU list from the kernel parameters. */
389static int __init tick_nohz_full_setup(char *str) 389void __init tick_nohz_full_setup(cpumask_var_t cpumask)
390{ 390{
391 alloc_bootmem_cpumask_var(&tick_nohz_full_mask); 391 alloc_bootmem_cpumask_var(&tick_nohz_full_mask);
392 if (cpulist_parse(str, tick_nohz_full_mask) < 0) { 392 cpumask_copy(tick_nohz_full_mask, cpumask);
393 pr_warn("NO_HZ: Incorrect nohz_full cpumask\n");
394 free_bootmem_cpumask_var(tick_nohz_full_mask);
395 return 1;
396 }
397 tick_nohz_full_running = true; 393 tick_nohz_full_running = true;
398
399 return 1;
400} 394}
401__setup("nohz_full=", tick_nohz_full_setup);
402 395
403static int tick_nohz_cpu_down(unsigned int cpu) 396static int tick_nohz_cpu_down(unsigned int cpu)
404{ 397{