Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1323685ybi; Tue, 16 Jul 2019 13:08:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0lpgQiWtbR+imBECRSGBRk72ocFKdihz0xqbAYv6MbQIGkbX68ZXDS6rcW/WCO65JEo6b X-Received: by 2002:a65:55c9:: with SMTP id k9mr36861721pgs.142.1563307731152; Tue, 16 Jul 2019 13:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563307731; cv=none; d=google.com; s=arc-20160816; b=WrKq4Vc9MmylTvW/tVoHgAksfUbDHWiIgUuoDSPdLO4ZnZE+IofG1bVrPS0PVpKoNp f1guTEu/py9Srz5s2WVtTicPsw0ZQvAqvUgwh32mgYLLBHKXzxiDtQzmINwWkZNKj4K0 QrckqaNGyAFFsd4lidK4UhLNF221Gac+816Fw0ZfrxZ3sZtJOKLS7o1dG/tm7kH/qnu7 TF/VgPBBk/bH7qdh/dzzumqBq+pERRuL/QrvzrtwgjPpFjwnIpfBwANwWT2tqzgWGuEa 8L8OUHZFeRSx7hWF7sP6NdqSqfuCQPY5MSPwamFH/Dz9TbUS4rRNj8qnEhl7QYWE6AAH pp+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=6BBqeqhbYS8io4Rv1Jg952aVRRf4aatY8zDWyS0e67E=; b=Faj+GBXledguyEHxbg2FYvJdaQcOIWqfLQ5DuDelM4hpgx1RoQbPt1gRZjQRI6AjP6 KzQdCnqGQ8v/xAcIhshmmy/Jmh+Npghl1dW+2QLJO6UcfI8waSU+D3LPUMBbQyHnGMdY 7BF24tzP15MF3z9pXOvLN6O9NQ7Fe1p8yhiE0ANoUme0BXrcy+1sA3rZVY9mvvuWeQui 91dcMRKamFNT83IN7vcMGgT8QeGGfnq2LSiIVK19Sz4ZLoJbpTB4xrFlIEWq9xEEgxKp 0FzutSZk5/GJWuv8D6O0jYWxZggsAuS4jo/KHE/j52TxiSJJYIfvwZB0mvGJqYrGV9zv fgmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si19534314pjy.48.2019.07.16.13.08.33; Tue, 16 Jul 2019 13:08:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388612AbfGPUHm (ORCPT + 99 others); Tue, 16 Jul 2019 16:07:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:51254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbfGPUHm (ORCPT ); Tue, 16 Jul 2019 16:07:42 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 31F4E20659; Tue, 16 Jul 2019 20:07:40 +0000 (UTC) Date: Tue, 16 Jul 2019 16:07:38 -0400 From: Steven Rostedt To: Thomas Gleixner Cc: Linus Torvalds , LKML , Andrew Morton , Greg Kroah-Hartman , Ingo Molnar , Peter Zijlstra , Sebastian Siewior , Paul McKenney , Christoph Hellwig , Tejun Heo , Lukas Bulwahn , Daniel Wagner , Tom Zanussi , Daniel Bristot de Oliveira , Clark Williams , Julia Cartwright , Marc Zyngier , Frederic Weisbecker Subject: Re: [patch 1/1] Kconfig: Introduce CONFIG_PREEMPT_RT Message-ID: <20190716160738.1ccfc018@gandalf.local.home> In-Reply-To: <20190715150601.205143057@linutronix.de> References: <20190715150402.798499167@linutronix.de> <20190715150601.205143057@linutronix.de> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Jul 2019 17:04:03 +0200 Thomas Gleixner wrote: > 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 > --- > arch/Kconfig | 3 +++ > kernel/Kconfig.preempt | 25 +++++++++++++++++++++++-- > 2 files changed, 26 insertions(+), 2 deletions(-) > > --- a/arch/Kconfig > +++ b/arch/Kconfig > @@ -809,6 +809,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 > > --- 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 I can't wait to see the CONFIG_ARCH_SUPPORTS_RT added! Acked-by: Steven Rostedt (VMware) -- Steve > + 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-preemtible sections. This makes the kernel, except for very > + low level and critical code pathes (entry code, scheduler, low > + level interrupt handling) fully preemtible 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 >