Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp46919ybi; Tue, 16 Jul 2019 15:59:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9cHsOpWhL4dQBLs2B8iV54oQArWcGaymsIMA57tAJZbT+gs2hbDrXI/RE4vQbKroR880C X-Received: by 2002:a17:90a:7787:: with SMTP id v7mr39778361pjk.143.1563317973615; Tue, 16 Jul 2019 15:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563317973; cv=none; d=google.com; s=arc-20160816; b=etaH2gZwwDUn/AsbSqywCK3MvcgeLDstHRIqMH4JcxAPJDnDNFgkt0syl+Q+D4xkT5 NHGkhinIsF/KT3fyqitRIa6mzJ++8U3/hdD5kirctBYQufcgQEYJqfIEj80MzrP10tvU f7xnqxbi6qQoFyvs9N7H+zP1vsub+cKsciJ1j4xbvmy3rpGj0k02KYh06s5vsChS8P3u WoHhvSZUUGbpCTDTN2hgv6VfUOfHQdXaleun9lm1KO+ZtrvIHzRuc2llAYF+qErzDSQJ nbwr+HPZ/6mSG+EZ1hBA7ksDKI4k7TwWHfuMHle01W6upO3Aq4iXrRfKPUwHe3yyQNma I3pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DnTaPvcy0KH7cH1iTW8cw8f8cSszGtQ1CMxkqbquSDQ=; b=iIZDoesVUXbcJVSDKDh0t0ybqnJ4Q1SdLhlmczSVJU4iA5z2Bkia5tZ3MMzplB4IjW 9PNqxM98N0swjRFivPTDczfx5jMeHOstY24ksUP8vQuu/fGHDizYn1ANEJtBdOuo+Jgw 17Lxfv2Tbmy//aDNSu8BH4b2M3uz3turyryi7k9by8li4ixns1u7+whjYdtjCSplBxef aoFZ9sQZXBRGZKQR3nOtnVCLxEPChg1DLrTKDHMCAIC0sLsbRSN/afzAWyGzLhPZRUDd 3VLJyzLWRw1yK3PqWdW6XqnDV9AcG+zkEmdORZN8NqdLYqbwQTQ8wSLyeWqmLfGWQocf pQzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JcTtUh3U; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si20160504pll.439.2019.07.16.15.59.16; Tue, 16 Jul 2019 15:59:33 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JcTtUh3U; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388915AbfGPW6O (ORCPT + 99 others); Tue, 16 Jul 2019 18:58:14 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36412 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728681AbfGPW6O (ORCPT ); Tue, 16 Jul 2019 18:58:14 -0400 Received: by mail-wm1-f65.google.com with SMTP id g67so16092849wme.1 for ; Tue, 16 Jul 2019 15:58:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DnTaPvcy0KH7cH1iTW8cw8f8cSszGtQ1CMxkqbquSDQ=; b=JcTtUh3UyN0H1+1xtHih7oZdy0jeBMQDuwMRgHxAJ0Az+HckuhrGL+0KsBCQ8CBnrr E2dLU7l3yhZAO02n/0osX8p29AWcdPqFfmjqgCg3QJj3Dw/57WSeveEmcJoZuuLzZvgb r50XK9Pm64rZhbNkdYbT8JpnS1P5oJx/I7rSmy8CyfSS7XyTbczD0l96/XcTRAxHQZoV 03cE/AgRuOXE9AsASBh+Jx/aSYvH2dd5YI77PqL9ObTfaeVxfFAxg+sist6elsYWZkVC l0fAvXkAfaDeWkOsIwleRw1VBrcIgjo10xzIlbSyOprghtLspVbZXQ1dzR+Z3png82oL RcDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=DnTaPvcy0KH7cH1iTW8cw8f8cSszGtQ1CMxkqbquSDQ=; b=D+m/0LR9HSesoP3DWsRH89K0qdlOh+Cs1PpLAt8LI5VNXk6WsFg2QldOewvfhxJlFF XOlKRpDZ1FlBQhHWTLYCFsxlmBq95ge8Yh4FgDhaiawware8oN/ssNoKvLPTFpUL0Zc1 fK3t1U3bKC/sdarwIbJRWCcHK8RVPXAIknD8r+hZQTwpoiB1LraxrUspNS54u31MQiJz MGf3vYyi9H+BGG1kmVL9ZmmdroB3OwxmVXgo8zuEThIdTHMyQOtjhEttrotZWx7x1ORQ B1RNcs17FDJR+Yx3pFIDV2jMggIEjWA1RBTL3gAt1E1941AjNKz8c/uEC8uhMrHeQmum yISg== X-Gm-Message-State: APjAAAXAUxxrFNFWbcGXzEAHNGBfWPf57+2sR7EN5N3XFPy+VE8XQZNf y5MPdceQti9p3/J0euqGbA7TJaCM X-Received: by 2002:a7b:c215:: with SMTP id x21mr32543226wmi.38.1563317892239; Tue, 16 Jul 2019 15:58:12 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id e19sm30406864wra.71.2019.07.16.15.58.10 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 16 Jul 2019 15:58:11 -0700 (PDT) Date: Wed, 17 Jul 2019 00:58:09 +0200 From: Ingo Molnar To: Thomas Gleixner Cc: Linus Torvalds , LKML , Andrew Morton , Greg Kroah-Hartman , 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: <20190716225809.GA50617@gmail.com> References: <20190715150402.798499167@linutronix.de> <20190715150601.205143057@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190715150601.205143057@linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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 > + select PREEMPT > + help > + This option turns the kernel into a real-time kernel by replacing > + various locking primitives (spinlocks, rwlocks, etc) with s/etc/etc. > + 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 s/preemtible/preemptible > + low level and critical code pathes (entry code, scheduler, low > + level interrupt handling) fully preemtible and brings most s/preemtible/preemptible > + execution contexts under scheduler control. > + > + Select this if you are building a kernel for systems which > + require real-time guarantees. Nice to see this getting started! :-) Acked-by: Ingo Molnar Thanks, Ingo