From nobody Thu Oct 12 04:20:58 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S5bzZ6Nfgz4xC1v; Thu, 12 Oct 2023 04:20:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S5bzZ5w60z4XYB; Thu, 12 Oct 2023 04:20:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697084458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2htvI/8EgTWZEDnR7mclp6aOOH98Frbu9NqO29hyaA4=; b=MUqbdfEAmMzlTEDVV6+AigFISIxq64xX++ArYMGfW3QCp3aP48oOjhjXtWVF7HWSGaap6R MNdUsgdkvFc4DrJLyxX/Riiiaca9sEPoLMLDBbiwWbx7ikX1QcfVC0lIdFJHuVauoSd4I8 05yh2iK3Upmozq4zG1r4bM79l92OvtnX57QN5MP4aciwHcEv/DQdE7rp/iMkgJZbqFm97G uUPH7LbucywNA9bGuo4dRoV7RcdtREgUMSi+sNm4Rpkd1q/wR7FEshGtPoPfGmP0wc4wlQ uhU3D2+SZXyYEJ2xRPfWceVzla5lWYYsW1ZPETTE+jVk9J5UcI0pvqXBw5uSSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697084458; a=rsa-sha256; cv=none; b=NRQ1dY6fGfkts0s8a9h4yqAnN7Suu9RxPRz3nO9Ee1y6yaqYAXAW7TZLrH9SbqaIYyZOCc ruzAxB/D1Xf4D0789Eh1TSjm/Y18XZh1D4QhkjF3hIOT6pR4S8j/3ZI+xZHqEPcJk6LdIU UYRXWdelIWtGfa7JO2OS/Dqa1bGuaZWIFX+xTFTbvbyIBBfxIryQHEIq8FkEgAIDI8H2IS fv+kPgrECcb7H5NuFrvTk0/rOfE1sVj1Cmqv/8LpdiftiXjRw4rxAwv3ax45MLlIfF30Ag ML4m8XyGLXmndM3Wx9UTspLa7JdEszIRTaHE7IoSGF7Gu4Z5v51YjkUYTqiclg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697084458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2htvI/8EgTWZEDnR7mclp6aOOH98Frbu9NqO29hyaA4=; b=Q9Wd9ahEgq201nyH638c3Q8SjjtAkSFOwTHRqj8Gw3u8mXizYrwcEMTyoG8VrXzttwOjQI 5XzJP+qVfGPu2+q9qyiXmesigEzVOuNBx2JiiffGwA+Dyb5golZT/oshaOrNFTzWFwVAxH Nvccs0pdKuD3AluKdX1ba2OQmXjBJetVqL38YYJVUSKk+OmIDigoS79HSNvgXLiftb+a7e pBL3N4XFzdCvtFTXMIQhUly3o8i6MnFQIvP2OAR2/qYxdDSRjborIb8wvYSLKQm7o5I4Hn zguCx3M/sECy3vp/FkeTY+HwSSOR8yy8GzATleu+israsZ4t2c4Rv/HP8k64Jg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S5bzZ50bhzq1p; Thu, 12 Oct 2023 04:20:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39C4Kw9f086439; Thu, 12 Oct 2023 04:20:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39C4KwYF086436; Thu, 12 Oct 2023 04:20:58 GMT (envelope-from git) Date: Thu, 12 Oct 2023 04:20:58 GMT Message-Id: <202310120420.39C4KwYF086436@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: cabab5c36287 - stable/13 - x86: Add sysctl flag CTLFLAG_TUN to loader tunables List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: cabab5c36287e07cc2890ef76f7e849f16636164 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=cabab5c36287e07cc2890ef76f7e849f16636164 commit cabab5c36287e07cc2890ef76f7e849f16636164 Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:21 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-12 04:19:37 +0000 x86: Add sysctl flag CTLFLAG_TUN to loader tunables The following sysctl variables are actually loader tunables. Add sysctl flag CTLFLAG_TUN to them so that `sysctl -T` will report them correctly. 1. machdep.idle 2. machdep.idle_apl31 No functional change intended. Reviewed by: kib, imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42113 (cherry picked from commit 149b9c234b00ff902718e1f76c809609a5465198) (cherry picked from commit 9eac775b415bf54080a98a9cf62524b8a6817595) --- sys/x86/x86/cpu_machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/x86/x86/cpu_machdep.c b/sys/x86/x86/cpu_machdep.c index fea64484dcea..51928805a653 100644 --- a/sys/x86/x86/cpu_machdep.c +++ b/sys/x86/x86/cpu_machdep.c @@ -693,7 +693,7 @@ out: } static int cpu_idle_apl31_workaround; -SYSCTL_INT(_machdep, OID_AUTO, idle_apl31, CTLFLAG_RW, +SYSCTL_INT(_machdep, OID_AUTO, idle_apl31, CTLFLAG_RWTUN | CTLFLAG_NOFETCH, &cpu_idle_apl31_workaround, 0, "Apollo Lake APL31 MWAIT bug workaround"); @@ -807,7 +807,7 @@ cpu_idle_sysctl(SYSCTL_HANDLER_ARGS) } SYSCTL_PROC(_machdep, OID_AUTO, idle, - CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_MPSAFE, + CTLTYPE_STRING | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | CTLFLAG_MPSAFE, 0, 0, cpu_idle_sysctl, "A", "currently selected idle function");