From nobody Thu Oct 12 05:10:59 2023 X-Original-To: dev-commits-src-all@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 4S5d5H3tqRz4xFd3; Thu, 12 Oct 2023 05:10:59 +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 4S5d5H1YlJz4gRX; Thu, 12 Oct 2023 05:10:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697087459; 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=SQo3L8DCr8tMY5pxOKm4FIZUOejDGw3bRavJoqsDeNI=; b=JTEhGstgaOK3S2XJHQ4fmIcH8RUepPsei8JE2FXh1FgVP07hKbRFWYIRofWJl2zSQuK4Bv eI37vGQmhI399Nyb38ldMgx6T+nc8VI04Lms3Gk59K/Uqk/OnlygSehBWZORFOJybhb7xH MTNOd9kRdDxEY8DE1NWkR9oYd8jtZ2wFO4sAXRPjXy+gAZDi/yxt/TbO7uCspHLjPBuzq3 MV6/y7OCEhFPSMawzJ+EL6AjHec2tFFhxRCtIXlc8VZMaLJFCasEy/mrUZirn8zhVmHDsm iJRHg/C40qRzpllzqtUGzQH8a8kmPYTZcw9BldVTCy2p7Y6fvUUmbJ2kGwOm6g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697087459; a=rsa-sha256; cv=none; b=h15eE6+I6H1Va2QTGEfylSc/WJknNQ9hXpLmliT/TwzjHoPTjhpjvfM8gESpx7m3hppQtG ebSWAh9lAYCguaEbqJxIGmdxeow2qtmGvNughBSZxnlA0tBmbI9Qmj5q06u1kBjXLcffi5 cD+ywLcgFTL8y7dOmTO8O9pT/6sSvac1eqwKX3KSknFdA3CyU//BhnWfXDBzSTqhKcslt0 hkF84AHdFoGSXyVs62OApNNU1Dhk+M/lqaeQB+qelJOueq+qL+Lcotns60bBSpORbO18DE bRxflEkdGZCEjqxD7JodnJIuO2FKOiV/4XaJlxmZ+Do6XYxM/JEWB5SFpP+wvw== 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=1697087459; 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=SQo3L8DCr8tMY5pxOKm4FIZUOejDGw3bRavJoqsDeNI=; b=a08mfwV+lHTyXrR5wS2d8EIinKsQuCuLU8sJR/M/tlUN7oYtOYGFOGAm944WhPjpL2UKnh f+oJWvfnYNn8yKZiy5o2yKBSkhD9hgG5MYp2V+vRVGWt6SDXEFiTLyHw29OdL7LztVIhh3 a+0TcrYaHj+pdhv/fOUHxxkRuDX5V+f72qAejp/APpBBw9D51DXZLPQZLHWH+9VzfNePKl 4g82IhGxL94bU37IRVJPLI2RlRh2wvzUFjXAGn6h+/1TZZ0B/FFmv0bAypttR/98jHztEx Tc/9j8Pq8Pq/BicwEeBkFHoLUuOrItw/XgHArqZfafw7GXrZ992n92W3RItY/w== 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 4S5d5H0cFyzrND; Thu, 12 Oct 2023 05:10:59 +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 39C5Axmm071425; Thu, 12 Oct 2023 05:10:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39C5AxkS071422; Thu, 12 Oct 2023 05:10:59 GMT (envelope-from git) Date: Thu, 12 Oct 2023 05:10:59 GMT Message-Id: <202310120510.39C5AxkS071422@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: 9d6eb30abb29 - stable/12 - x86: Add sysctl flag CTLFLAG_TUN to loader tunables List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/12 X-Git-Reftype: branch X-Git-Commit: 9d6eb30abb29ec6b71896b5a8e7c130375fa8549 Auto-Submitted: auto-generated The branch stable/12 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=9d6eb30abb29ec6b71896b5a8e7c130375fa8549 commit 9d6eb30abb29ec6b71896b5a8e7c130375fa8549 Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:21 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-12 05:09:31 +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) (cherry picked from commit cabab5c36287e07cc2890ef76f7e849f16636164) --- sys/x86/x86/cpu_machdep.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/x86/x86/cpu_machdep.c b/sys/x86/x86/cpu_machdep.c index 26423228d5dc..8ea64970a391 100644 --- a/sys/x86/x86/cpu_machdep.c +++ b/sys/x86/x86/cpu_machdep.c @@ -640,7 +640,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"); @@ -748,8 +748,10 @@ cpu_idle_sysctl(SYSCTL_HANDLER_ARGS) return (cpu_idle_selector(buf) ? 0 : EINVAL); } -SYSCTL_PROC(_machdep, OID_AUTO, idle, CTLTYPE_STRING | CTLFLAG_RW, 0, 0, - cpu_idle_sysctl, "A", "currently selected idle function"); +SYSCTL_PROC(_machdep, OID_AUTO, idle, + CTLTYPE_STRING | CTLFLAG_RWTUN | CTLFLAG_NOFETCH, + 0, 0, cpu_idle_sysctl, "A", + "currently selected idle function"); static void cpu_idle_tun(void *unused __unused)