From nobody Thu Oct 12 04:09:55 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 4S5bkq6R3Kz4xB9T; Thu, 12 Oct 2023 04:09:55 +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 4S5bkq5f4cz4TZm; Thu, 12 Oct 2023 04:09:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697083795; 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=BpFcwm/kIHzqEETe5BwozBdGCVqOP9VNEchKOw3LbTY=; b=LnG2i1fbDGDoB5o0k2wx+6VwkNEH2Cv0iC8LJL1o10B5CRnLeXARpiPqeSz2VUHTYoKdZn d0Xhrs3vymdXJPzFljm7ZeKyqkURDHKrYHcHLRzSdeVUSr+DVuWw6yhwFzTJIafJDj9Q08 maKUGptQdItiqAd21T3q/pBF/rvPxHn5JQeWApm7RV8ELfvVC+cgT4wtDzzeL6JmrCGGC9 wSBKkUKPqGVCGt5OUysCsKVxAFd2l0H0s0O74+z3N54MWTUSPLR/3LTUj+eaKfHvTTtq7q rWhJmWmaRX61TAU8usddFLWBWF17ONN4oxPlnedFGGrhtI8lEtrKAaAsmBuOTQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697083795; a=rsa-sha256; cv=none; b=LxlLg//5mr5JafM4Ha8d3/dBkZkQodQ32nh+sCyjbSopD1AQgZ4FK82D5PKaDNRwwLtN+l km9aFN5/ArEW29vGPnG8waVO5xgMJ+JDdOJ3atOirLOKnG7sF96DllZEYDeJU+uXzs6Xk0 eXgT/Jn5tUQUUP/MVGlpYeV1+Vp6QW2K1zhZJ2Q9Eq2Evs+4LaWtG3/4k/bxaMwSS1OR6e zz6mK8e4Ims8OMtj2WALBdXX9N6gtP6jtwYQ0/JxmNAEehc38Ko4X06xm/EAgzvzsChqOL 0piDs181Vx7LTOwEc7UJZ1tdzCH23jC70dc0tMu3/i+WniamkckSvDuKJN+30Q== 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=1697083795; 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=BpFcwm/kIHzqEETe5BwozBdGCVqOP9VNEchKOw3LbTY=; b=Dvsb2jNCo4U5HBbaX9UWUCEHhPYwRNKpPNLaBHkoqFJiPPK/2r2MJIbiXXaYgNRF2VYsKp CnYJ1LrMJ4cA6qf+/PsJ40J93w8shlgy5kgRnGf+jGkLAlFZRXHGedaiBJqbOXTV7Zqr8R 0HtBBhgRpA30gSGcDJ+r0ooutT5yJu8+znx+C5xXOmZVWOarsTjx7r4xctg3OOw2giRbSa dLD9l/iWs5ey06Q34hqkwHGM6fdPvXf2FL+ITIvys7meFWkf1cxz5/5LS8gL4ipeKH6pV6 4BgNdP6sS2msGUXqu1bIxeCh6LmjEZfFwjr77tZYYipmCmQi8i5ctYhL7lBnHg== 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 4S5bkq4hhhzq0g; Thu, 12 Oct 2023 04:09:55 +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 39C49tsZ058645; Thu, 12 Oct 2023 04:09:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39C49tQI058642; Thu, 12 Oct 2023 04:09:55 GMT (envelope-from git) Date: Thu, 12 Oct 2023 04:09:55 GMT Message-Id: <202310120409.39C49tQI058642@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: 9eac775b415b - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 9eac775b415bf54080a98a9cf62524b8a6817595 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=9eac775b415bf54080a98a9cf62524b8a6817595 commit 9eac775b415bf54080a98a9cf62524b8a6817595 Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:21 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-12 04:08:19 +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) --- 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 868e6e2bc365..6062b4e85e16 100644 --- a/sys/x86/x86/cpu_machdep.c +++ b/sys/x86/x86/cpu_machdep.c @@ -688,7 +688,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"); @@ -802,7 +802,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");