Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1326845ybi; Tue, 16 Jul 2019 13:11:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUMiSlXfl06PwenlnSL6DCDiYSUQ7JymlrqDUodPZ7Rym4qP0hzmKuuCM60I05l2uXgNjF X-Received: by 2002:a17:90a:23a4:: with SMTP id g33mr40095835pje.115.1563307902037; Tue, 16 Jul 2019 13:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563307902; cv=none; d=google.com; s=arc-20160816; b=nlooickTamNMl4UbJe2PdneSvV1H3i8RlUizheuYCZYVmveqLk105Fud/yuNVgeheC Id5vGAOBA/0RAzb/kVe1DOw8YIYVVpzflF85be8LHXZRV1aDEy02CvyR3tAQGxecVC1o 0XpeE8QhjR4KbRBiwzXdK5xQQvYA2gxKajaTDMzXmMzMiBt+sJdBz/1WLa6KXxK5bDKF zvaJOkEdgMJ1ey7zd5cVGS2TqEMADPOVyuF0yXARJjGZrEI6QReqclbGbju20fhQqB44 F2HrWcX0JcDLBV9ZXTFnzTReH9avZV5c4inJDuVZO6CgTOo4/sBT2FOtes/+8YpUzike t6Lg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=242DOCJXkOvZLQPRo+ENciGWFOGLPF2QbcTQSwCKkaQ=; b=vJ+plkHfegfcGifPMSsRHHt7Bg3oIwyF1DXRbsbZ6aeaYnwbN/V6yG017IPr81irbj NT2ipi6JyvGt0hcCC44zlWKz4x4YrQReb+aKn7tYzA0ck76OeKGMqfDHpfAxblRiTD0F R0cGTCiaIJm9ZPWlS0osPPg3MYJCM9xSGAE3mLjknPOZjK93TKqyOnBeleHoZghaDhBq H+Nqeay08MDQjsmTOOt/rIfHR0KtuH+GOGXZhM981urkUdoto3CSnci1UzLlwPKaehXg AfZql2t0TZkLfCZaafKHADXyPHyGJiARsk0UHECc4XPcpfY3aKF2hi4BWbgElSP6ZbBu 6h7g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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.11.22; Tue, 16 Jul 2019 13:11:42 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388615AbfGPUKt (ORCPT + 99 others); Tue, 16 Jul 2019 16:10:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59722 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728575AbfGPUKs (ORCPT ); Tue, 16 Jul 2019 16:10:48 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 361C13082B6D; Tue, 16 Jul 2019 20:10:48 +0000 (UTC) Received: from torg (ovpn-122-28.rdu2.redhat.com [10.10.122.28]) by smtp.corp.redhat.com (Postfix) with ESMTP id 76D2C60C44; Tue, 16 Jul 2019 20:10:42 +0000 (UTC) Date: Tue, 16 Jul 2019 15:10:40 -0500 From: Clark Williams To: Thomas Gleixner Cc: Linus Torvalds , LKML , Andrew Morton , Greg Kroah-Hartman , Ingo Molnar , Peter Zijlstra , Steven Rostedt , 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: <20190716151040.04ef9122@torg> In-Reply-To: <20190715150601.205143057@linutronix.de> References: <20190715150402.798499167@linutronix.de> <20190715150601.205143057@linutronix.de> Organization: Red Hat, Inc MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Tue, 16 Jul 2019 20:10:48 +0000 (UTC) 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 Excited to see this Thomas. Now I can start planning to build from a single tree rather than an RT tree off to the side of RHEL :) Acked-by: Clark Williams > --- > 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 > + 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 > > -- The United States Coast Guard Ruining Natural Selection since 1790