From nobody Sun Dec 26 03:24:51 2021 X-Original-To: dev-commits-src-main@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 342A4190F459; Sun, 26 Dec 2021 03:24:52 +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 4JM5l75Zlxz4d2V; Sun, 26 Dec 2021 03:24:51 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 A137B22E5B; Sun, 26 Dec 2021 03:24:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BQ3Ophm048328; Sun, 26 Dec 2021 03:24:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BQ3OptT048327; Sun, 26 Dec 2021 03:24:51 GMT (envelope-from git) Date: Sun, 26 Dec 2021 03:24:51 GMT Message-Id: <202112260324.1BQ3OptT048327@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Motin Subject: git: 1d6fb900ed90 - main - x86: Remove CTLFLAG_NEEDGIANT from sysctls. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mav X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1d6fb900ed90d1fd6547e2d79da9d0259f450c2c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640489091; 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=2UkF3ASjuGwERKrWJsH9QCwz2QkHJFWrMJCa3T9qBnw=; b=H1BSFUy1fNGCmfD7bph4O19kffrD/5k1qc8E54BnrcrstH9ewvgWrPX3mhX2ln+7Ef3iw4 +M+pTwBqnAPvVoIABzZr+yvfAgcKZPDGGRXjYIX0eBvT4sm4E0/dhFev1/CWSQugjeyDGF INTXOXCp9feUBLDqBU3kFwlLXE2+QzW1C1uhrhY5EI25MzCZbfrH4SEesmWCSd9LB89nDU NtZ8Jm+zXQ4xOYAKwNXhickGf+ASB1B9RHPl8Hqv2eMaksZrUakJ6X7yc9fJ0E/8DgQFdh t62L8nBzQZs7f4tdV980CvDbT6mDoubbwr/KwjGOOqUOjjFM6sop+c8kOIXAEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640489091; a=rsa-sha256; cv=none; b=rQs/15NLg+DOjmzSPQoFIj+zbpImsmSjt/5ZRRIKtg8pFZN82hZBgQhod+mPnCK5E2ivYc bgn8oKui3RHhaPPtW4ehM/TdU4VGl5V1FFvmVIh/aFzwJKSQ50UXAhevXtneSpUpUXFiFh D04GsoL2/MY7Zyovyp4W5H6YV7Y6C3P2c41/SNh/nUpSlFm6Gv9PjQY+U0uObqIY8uZCF7 9H8GZQfR3xtSP80m90zF+TYANQfITOuTWMhgUdte68Uso66SSSyXKXwo9uA7YRJPKYygpm SVN3nA4UgRCyDMvETKtJxldGGqbfbBPuJiyLCCHHXVkO442BBUYTNsPAgTfuXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=1d6fb900ed90d1fd6547e2d79da9d0259f450c2c commit 1d6fb900ed90d1fd6547e2d79da9d0259f450c2c Author: Alexander Motin AuthorDate: 2021-12-26 03:24:20 +0000 Commit: Alexander Motin CommitDate: 2021-12-26 03:24:20 +0000 x86: Remove CTLFLAG_NEEDGIANT from sysctls. MFC after: 2 weeks --- sys/x86/cpufreq/hwpstate_intel.c | 4 ++-- sys/x86/isa/clock.c | 2 +- sys/x86/x86/cpu_machdep.c | 4 ++-- sys/x86/x86/mp_watchdog.c | 2 +- sys/x86/x86/tsc.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/x86/cpufreq/hwpstate_intel.c b/sys/x86/cpufreq/hwpstate_intel.c index 1ed1056024c1..ae63cc6a6efe 100644 --- a/sys/x86/cpufreq/hwpstate_intel.c +++ b/sys/x86/cpufreq/hwpstate_intel.c @@ -506,12 +506,12 @@ intel_hwpstate_attach(device_t dev) SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), SYSCTL_STATIC_CHILDREN(_debug), OID_AUTO, device_get_nameunit(dev), - CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_NEEDGIANT, + CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_MPSAFE, sc, 0, intel_hwp_dump_sysctl_handler, "A", ""); SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, - "epp", CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_NEEDGIANT, dev, 0, + "epp", CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, dev, 0, sysctl_epp_select, "I", "Efficiency/Performance Preference " "(range from 0, most performant, through 100, most efficient)"); diff --git a/sys/x86/isa/clock.c b/sys/x86/isa/clock.c index 513174626892..1178d35979c1 100644 --- a/sys/x86/isa/clock.c +++ b/sys/x86/isa/clock.c @@ -460,7 +460,7 @@ sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS) } SYSCTL_PROC(_machdep, OID_AUTO, i8254_freq, - CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, + CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, sizeof(u_int), sysctl_machdep_i8254_freq, "IU", "i8254 timer frequency"); diff --git a/sys/x86/x86/cpu_machdep.c b/sys/x86/x86/cpu_machdep.c index 1924342c8e83..c5026ed8acda 100644 --- a/sys/x86/x86/cpu_machdep.c +++ b/sys/x86/x86/cpu_machdep.c @@ -744,7 +744,7 @@ idle_sysctl_available(SYSCTL_HANDLER_ARGS) } SYSCTL_PROC(_machdep, OID_AUTO, idle_available, - CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_NEEDGIANT, + CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE, 0, 0, idle_sysctl_available, "A", "list of available idle functions"); @@ -791,7 +791,7 @@ cpu_idle_sysctl(SYSCTL_HANDLER_ARGS) } SYSCTL_PROC(_machdep, OID_AUTO, idle, - CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_NEEDGIANT, + CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, 0, cpu_idle_sysctl, "A", "currently selected idle function"); diff --git a/sys/x86/x86/mp_watchdog.c b/sys/x86/x86/mp_watchdog.c index 018139b049c0..0823f90d060e 100644 --- a/sys/x86/x86/mp_watchdog.c +++ b/sys/x86/x86/mp_watchdog.c @@ -150,7 +150,7 @@ sysctl_watchdog(SYSCTL_HANDLER_ARGS) return (0); } SYSCTL_PROC(_debug, OID_AUTO, watchdog, - CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, + CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, 0, sysctl_watchdog, "I", ""); diff --git a/sys/x86/x86/tsc.c b/sys/x86/x86/tsc.c index 693e9a9f2c75..ab8f94c2fc2d 100644 --- a/sys/x86/x86/tsc.c +++ b/sys/x86/x86/tsc.c @@ -852,7 +852,7 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS) return (error); } SYSCTL_PROC(_machdep, OID_AUTO, tsc_freq, - CTLTYPE_U64 | CTLFLAG_RW | CTLFLAG_NEEDGIANT, + CTLTYPE_U64 | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, 0, sysctl_machdep_tsc_freq, "QU", "Time Stamp Counter frequency");