All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched/isolation: Make CPU_ISOLATION depend on SMP or COMPILE_TEST
@ 2018-01-02 11:13 Geert Uytterhoeven
  2018-01-02 23:25 ` Nicolas Pitre
  2018-01-08 20:34 ` [tip:sched/urgent] sched/isolation: Make CONFIG_CPU_ISOLATION=y " tip-bot for Geert Uytterhoeven
  0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2018-01-02 11:13 UTC (permalink / raw)
  To: Frederic Weisbecker, Ingo Molnar
  Cc: Nicolas Pitre, linux-kernel, Geert Uytterhoeven

On uniprocessor systems, critical and non-critical tasks cannot be
isolated, as there is only a single CPU core.  Hence enabling CPU
isolation by default on such systems does not make much sense.

Instead of changing the default for !SMP, fix this by making the feature
depend on SMP, with an override for compile-testing.  Note that its sole
selector (NO_HZ_FULL) already depends on SMP.

This decreases kernel size for a default uniprocessor kernel by ca. 1
KiB.

Fixes: 2c43838c99d9d23f ("sched/isolation: Enable CONFIG_CPU_ISOLATION=y by default")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 init/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/init/Kconfig b/init/Kconfig
index 690a381adee0d164..c1221332e128c700 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -461,6 +461,7 @@ endmenu # "CPU/Task time and stats accounting"
 
 config CPU_ISOLATION
 	bool "CPU isolation"
+	depends on SMP || COMPILE_TEST
 	default y
 	help
 	  Make sure that CPUs running critical tasks are not disturbed by
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] sched/isolation: Make CPU_ISOLATION depend on SMP or COMPILE_TEST
  2018-01-02 11:13 [PATCH] sched/isolation: Make CPU_ISOLATION depend on SMP or COMPILE_TEST Geert Uytterhoeven
@ 2018-01-02 23:25 ` Nicolas Pitre
  2018-01-08 20:34 ` [tip:sched/urgent] sched/isolation: Make CONFIG_CPU_ISOLATION=y " tip-bot for Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Pitre @ 2018-01-02 23:25 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Frederic Weisbecker, Ingo Molnar, linux-kernel

On Tue, 2 Jan 2018, Geert Uytterhoeven wrote:

> On uniprocessor systems, critical and non-critical tasks cannot be
> isolated, as there is only a single CPU core.  Hence enabling CPU
> isolation by default on such systems does not make much sense.
> 
> Instead of changing the default for !SMP, fix this by making the feature
> depend on SMP, with an override for compile-testing.  Note that its sole
> selector (NO_HZ_FULL) already depends on SMP.
> 
> This decreases kernel size for a default uniprocessor kernel by ca. 1
> KiB.
> 
> Fixes: 2c43838c99d9d23f ("sched/isolation: Enable CONFIG_CPU_ISOLATION=y by default")
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Acked-by: Nicolas Pitre <nico@linaro.org>


> ---
>  init/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/init/Kconfig b/init/Kconfig
> index 690a381adee0d164..c1221332e128c700 100644
> --- a/init/Kconfig
> +++ b/init/Kconfig
> @@ -461,6 +461,7 @@ endmenu # "CPU/Task time and stats accounting"
>  
>  config CPU_ISOLATION
>  	bool "CPU isolation"
> +	depends on SMP || COMPILE_TEST
>  	default y
>  	help
>  	  Make sure that CPUs running critical tasks are not disturbed by
> -- 
> 2.7.4
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:sched/urgent] sched/isolation: Make CONFIG_CPU_ISOLATION=y depend on SMP or COMPILE_TEST
  2018-01-02 11:13 [PATCH] sched/isolation: Make CPU_ISOLATION depend on SMP or COMPILE_TEST Geert Uytterhoeven
  2018-01-02 23:25 ` Nicolas Pitre
@ 2018-01-08 20:34 ` tip-bot for Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Geert Uytterhoeven @ 2018-01-08 20:34 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: tglx, peterz, nico, frederic, linux-kernel, mingo, torvalds, hpa, geert

Commit-ID:  414a2dc138838642d28938506e31ad461648b898
Gitweb:     https://git.kernel.org/tip/414a2dc138838642d28938506e31ad461648b898
Author:     Geert Uytterhoeven <geert@linux-m68k.org>
AuthorDate: Tue, 2 Jan 2018 12:13:10 +0100
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Mon, 8 Jan 2018 20:04:07 +0100

sched/isolation: Make CONFIG_CPU_ISOLATION=y depend on SMP or COMPILE_TEST

On uniprocessor systems, critical and non-critical tasks cannot be
isolated, as there is only a single CPU core.  Hence enabling CPU
isolation by default on such systems does not make much sense.

Instead of changing the default for !SMP, fix this by making the feature
depend on SMP, with an override for compile-testing.  Note that its sole
selector (NO_HZ_FULL) already depends on SMP.

This decreases kernel size for a default uniprocessor kernel by ca. 1 KiB.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: 2c43838c99d9d23f ("sched/isolation: Enable CONFIG_CPU_ISOLATION=y by default")
Link: http://lkml.kernel.org/r/1514891590-20782-1-git-send-email-geert@linux-m68k.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 init/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/init/Kconfig b/init/Kconfig
index 690a381..c122133 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -461,6 +461,7 @@ endmenu # "CPU/Task time and stats accounting"
 
 config CPU_ISOLATION
 	bool "CPU isolation"
+	depends on SMP || COMPILE_TEST
 	default y
 	help
 	  Make sure that CPUs running critical tasks are not disturbed by

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-08 20:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-02 11:13 [PATCH] sched/isolation: Make CPU_ISOLATION depend on SMP or COMPILE_TEST Geert Uytterhoeven
2018-01-02 23:25 ` Nicolas Pitre
2018-01-08 20:34 ` [tip:sched/urgent] sched/isolation: Make CONFIG_CPU_ISOLATION=y " tip-bot for Geert Uytterhoeven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.