[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-a003296b7a97dedccb0c35c4c1e44e088050b8c4@git.kernel.org>
Date: Thu, 18 Jul 2019 10:52:15 -0700
From: tip-bot for Thomas Gleixner <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: hpa@...or.com, gregkh@...uxfoundation.org,
tom.zanussi@...ux.intel.com, lukas.bulwahn@...il.com,
tglx@...utronix.de, marc.zyngier@....com, rostedt@...dmis.org,
akpm@...uxfoundation.org, frederic@...nel.org, efault@....de,
paulmck@...ux.vnet.ibm.com, lgoncalv@...hat.com,
linux-kernel@...r.kernel.org, bigeasy@...utronix.de,
mingo@...nel.org, bristot@...hat.com, julia@...com,
gratian.crisan@...com, torvalds@...ux-foundation.org,
clark.williams@...il.com, wagi@...om.org, williams@...hat.com,
tj@...nel.org, paulmck@...ux.ibm.com, hch@....de,
peterz@...radead.org
Subject: [tip:sched/urgent] sched/rt, Kconfig: Introduce CONFIG_PREEMPT_RT
Commit-ID: a003296b7a97dedccb0c35c4c1e44e088050b8c4
Gitweb: https://git.kernel.org/tip/a003296b7a97dedccb0c35c4c1e44e088050b8c4
Author: Thomas Gleixner <tglx@...utronix.de>
AuthorDate: Wed, 17 Jul 2019 22:01:49 +0200
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Thu, 18 Jul 2019 19:47:11 +0200
sched/rt, Kconfig: Introduce CONFIG_PREEMPT_RT
Add a new entry to the preemption menu which enables the real-time support
for the kernel. The choice is only enabled when an architecture supports
it.
It selects PREEMPT as the RT features depend on it. To achieve that the
existing PREEMPT choice is renamed to PREEMPT_LL which select PREEMPT as
well.
No functional change.
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Acked-by: Paul E. McKenney <paulmck@...ux.ibm.com>
Acked-by: Steven Rostedt (VMware) <rostedt@...dmis.org>
Acked-by: Clark Williams <williams@...hat.com>
Acked-by: Daniel Bristot de Oliveira <bristot@...hat.com>
Acked-by: Frederic Weisbecker <frederic@...nel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Acked-by: Marc Zyngier <marc.zyngier@....com>
Acked-by: Daniel Wagner <wagi@...om.org>
Acked-by: Luis Claudio R. Goncalves <lgoncalv@...hat.com>
Acked-by: Julia Cartwright <julia@...com>
Cc: Andrew Morton <akpm@...uxfoundation.org>
Cc: Christoph Hellwig <hch@....de>
Cc: Clark Williams <clark.williams@...il.com>
Cc: Gratian Crisan <gratian.crisan@...com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Lukas Bulwahn <lukas.bulwahn@...il.com>
Cc: Mike Galbraith <efault@....de>
Cc: Paul McKenney <paulmck@...ux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Sebastian Siewior <bigeasy@...utronix.de>
Cc: Tejun Heo <tj@...nel.org>
Cc: Tom Zanussi <tom.zanussi@...ux.intel.com>
Link: http://lkml.kernel.org/r/alpine.DEB.2.21.1907172200190.1778@nanos.tec.linutronix.de
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
arch/Kconfig | 3 +++
kernel/Kconfig.preempt | 25 +++++++++++++++++++++++--
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index c47b328eada0..ada51f36bd5d 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -801,6 +801,9 @@ config ARCH_NO_COHERENT_DMA_MMAP
config ARCH_NO_PREEMPT
bool
+config ARCH_SUPPORTS_RT
+ bool
+
config CPU_NO_EFFICIENT_FFS
def_bool n
diff --git a/kernel/Kconfig.preempt b/kernel/Kconfig.preempt
index dc0b682ec2d9..fc020c09b7e8 100644
--- a/kernel/Kconfig.preempt
+++ b/kernel/Kconfig.preempt
@@ -35,10 +35,10 @@ config PREEMPT_VOLUNTARY
Select this if you are building a kernel for a desktop system.
-config PREEMPT
+config PREEMPT_LL
bool "Preemptible Kernel (Low-Latency Desktop)"
depends on !ARCH_NO_PREEMPT
- select PREEMPT_COUNT
+ select PREEMPT
select UNINLINE_SPIN_UNLOCK if !ARCH_INLINE_SPIN_UNLOCK
help
This option reduces the latency of the kernel by making
@@ -55,7 +55,28 @@ config PREEMPT
embedded system with latency requirements in the milliseconds
range.
+config PREEMPT_RT
+ bool "Fully Preemptible Kernel (Real-Time)"
+ depends on EXPERT && ARCH_SUPPORTS_RT
+ select PREEMPT
+ help
+ This option turns the kernel into a real-time kernel by replacing
+ various locking primitives (spinlocks, rwlocks, etc.) with
+ preemptible priority-inheritance aware variants, enforcing
+ interrupt threading and introducing mechanisms to break up long
+ non-preemptible sections. This makes the kernel, except for very
+ low level and critical code pathes (entry code, scheduler, low
+ level interrupt handling) fully preemptible and brings most
+ execution contexts under scheduler control.
+
+ Select this if you are building a kernel for systems which
+ require real-time guarantees.
+
endchoice
config PREEMPT_COUNT
bool
+
+config PREEMPT
+ bool
+ select PREEMPT_COUNT
Powered by blists - more mailing lists