From nobody Tue Jun 23 03:13:20 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98EA7C433EF for ; Fri, 11 Mar 2022 14:41:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349821AbiCKOmh (ORCPT ); Fri, 11 Mar 2022 09:42:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349728AbiCKOmY (ORCPT ); Fri, 11 Mar 2022 09:42:24 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EF071AAA74; Fri, 11 Mar 2022 06:40:51 -0800 (PST) Date: Fri, 11 Mar 2022 14:40:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1647009636; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Bq7jXPjH2+/y4/vaCcgbMOclnKGE2wW5g01S7r6BW64=; b=ayjuyhu/VpJ3TZcdP6LIwIrI+AFqGWtt5B8FHcm5hxm7DqQLdWVUOTgD1tT1J1nUV1acFU 8PQiWmkoLXeCYR+wpyL0uLPjxp3ThUsayLTIc5C1ZSzAP17QvpQ4ucbRfkViL0NVd2a883 MKEhjwNxRTLfznmTgTEwVGHvmOoK2DtRTO+9ljW4qJKZgrhp/pgx4aSZwPHZQEMPwOYrZ0 0zFvHLtNXaJoUTvNO4wvIwj2HpwQS0Auo3HEzHDYsx3W8Gs3aYnA/YKuP+rOmx8UawEJLf DzrCsiOkJ2HUMgacd1peX6TfZ+F/JSundqYa6OdjyRvagqND+RGABmuO0tcQVA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1647009636; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Bq7jXPjH2+/y4/vaCcgbMOclnKGE2wW5g01S7r6BW64=; b=vmwBhKQOPIpnC4o7GxW8wQbqR1f50jt2THhRkRE5YAzboNcTXgQ+mcsKGoN2N/K698ZBuA pT4Bh1ujiwktn5BQ== From: "tip-bot2 for Frederic Weisbecker" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/preempt: Tell about PREEMPT_DYNAMIC on kernel headers Cc: Valentin Schneider , Frederic Weisbecker , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220217111240.GA742892@lothringen> References: <20220217111240.GA742892@lothringen> MIME-Version: 1.0 Message-ID: <164700963517.16921.5629732002889775470.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: a0a7e453b502cbbf7ff372f907a4e27a2ebf5445 Gitweb: https://git.kernel.org/tip/a0a7e453b502cbbf7ff372f907a4e27a2= ebf5445 Author: Frederic Weisbecker AuthorDate: Thu, 17 Feb 2022 12:12:40 +01:00 Committer: Peter Zijlstra CommitterDate: Fri, 11 Mar 2022 15:36:35 +01:00 sched/preempt: Tell about PREEMPT_DYNAMIC on kernel headers Displaying "PREEMPT" on kernel headers when CONFIG_PREEMPT_DYNAMIC=3Dy can be misleading for anybody involved in remote debugging because it is then not guaranteed that there is an actual preemption behaviour. It depends on default Kconfig or boot defined choices. Therefore, tell about PREEMPT_DYNAMIC on static kernel headers and leave the search for the actual preemption behaviour to browsing dmesg. Reviewed-by: Valentin Schneider Signed-off-by: Frederic Weisbecker Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20220217111240.GA742892@lothringen --- init/Makefile | 3 ++- scripts/mkcompile_h | 17 ++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/init/Makefile b/init/Makefile index 06326e3..d82623d 100644 --- a/init/Makefile +++ b/init/Makefile @@ -31,7 +31,8 @@ quiet_cmd_compile.h =3D CHK $@ cmd_compile.h =3D \ $(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT_BUILD)" \ - "$(CONFIG_PREEMPT_RT)" "$(CONFIG_CC_VERSION_TEXT)" "$(LD)" + "$(CONFIG_PREEMPT_DYNAMIC)" "$(CONFIG_PREEMPT_RT)" \ + "$(CONFIG_CC_VERSION_TEXT)" "$(LD)" =20 include/generated/compile.h: FORCE $(call cmd,compile.h) diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h index 6a2a04d..ca40a52 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h @@ -5,9 +5,10 @@ TARGET=3D$1 ARCH=3D$2 SMP=3D$3 PREEMPT=3D$4 -PREEMPT_RT=3D$5 -CC_VERSION=3D"$6" -LD=3D$7 +PREEMPT_DYNAMIC=3D$5 +PREEMPT_RT=3D$6 +CC_VERSION=3D"$7" +LD=3D$8 =20 # Do not expand names set -f @@ -41,8 +42,14 @@ fi UTS_VERSION=3D"#$VERSION" CONFIG_FLAGS=3D"" if [ -n "$SMP" ] ; then CONFIG_FLAGS=3D"SMP"; fi -if [ -n "$PREEMPT" ] ; then CONFIG_FLAGS=3D"$CONFIG_FLAGS PREEMPT"; fi -if [ -n "$PREEMPT_RT" ] ; then CONFIG_FLAGS=3D"$CONFIG_FLAGS PREEMPT_RT"; = fi + +if [ -n "$PREEMPT_RT" ] ; then + CONFIG_FLAGS=3D"$CONFIG_FLAGS PREEMPT_RT" +elif [ -n "$PREEMPT_DYNAMIC" ] ; then + CONFIG_FLAGS=3D"$CONFIG_FLAGS PREEMPT_DYNAMIC" +elif [ -n "$PREEMPT" ] ; then + CONFIG_FLAGS=3D"$CONFIG_FLAGS PREEMPT" +fi =20 # Truncate to maximum length UTS_LEN=3D64