From nobody Wed Apr 12 04:21:21 2023 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 4Px8fV1w1zz45CG7; Wed, 12 Apr 2023 04:21:22 +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 4Px8fV1G6dz3yml; Wed, 12 Apr 2023 04:21:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681273282; 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=81D1DO9PIVrGAEjLwgyqQUUjypk+zSnk5+4W7jPLQ2w=; b=hRunUea8b6VjfLOQGsmynFOnavQbnC4mVT93eW2nJHiJRMyy2qmwg72KxEJ0kgaC8Priu1 +sQTj5SCwJnQHQp7yyOsU8y85gdQ6Cgec2pZB1huY+Y8+tkIO/H3W6k89DBsi5++AuCLUq z7hiIqpq4KEbImiUDNK6ypsE7bmTKeqah7s6xDnxYK48NzsXx8zb4VVjErIQLABZcUkmIB 4v9aE2GvaszssbO3Fw4sDWl6cqeSHaSIDoINK9n2wWmlEOgyPuSiJHe222HspU34ekFb1e t/kAa5jbKzG3hk/Q24ZrUn5H9gm5x/a8bgfZ0cG7DAkW3jafYt+6lytrCZVmbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681273282; 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=81D1DO9PIVrGAEjLwgyqQUUjypk+zSnk5+4W7jPLQ2w=; b=U8sDLN29ENKnbMRUO0pb/MA1bnqpOahdkGDVKsOiMAXZYypaKD0Eazg0Q5d9NLh0nd0A3l 6ZU/9/Ph5KItEeco9aMSAo04uBlsn39QNm3ZA5K2Eky0jUQZUdhF0h26iu/FJk2J9nFBXE 3JpDfpiRgHg7AP+FCr60lxIY8kF8q5BBX3bjp6trr3wuYZQEPbAHzjL0LjLf+voGEBdIcH Q00L+G7SJBTn5Lk+tSJaoDZwjB6Y8EiitOLvjIv1RPe4EjLl/nnd0YSlmw30vYCkFIt7wT 86KPaB8g0Z2p4ocvRL+MTHUu+ayljbq6SFVqHyrjdrjMQIdvKNRnd/vfbV5y8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681273282; a=rsa-sha256; cv=none; b=aPk+sh2GNDtbE0S8oF9tpnG4e/bNIDpM0w3fx1ED8mLKkDmuJ4kNJeTTrlEB1hFjX2OOC3 I5h6jPC043xg688HHLD0BMd9qj4cLpbcGEaQfj9qTLch3bN2NogP1b9juMYEeeyBkozqEW efAADZOQ679UDQvbFFc4Ok5GBAbjhD7V4ERAy2PWfqKoUPrI5F/JxDOcY6O1Mew4TfhxrP e01DTzllH9pJOfNahIctGjHTA63eHN4PEZjWxi/PmS1N1JwzeTFlcOs9nzg1KeSVz7PDzz cAO4vM/1HhNEUzZVrP3d6WQ4ej7WuqiXBVifMBQ1Gtbrqxxey9N72TmEChEqdA== 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 4Px8fV0HgCzlnV; Wed, 12 Apr 2023 04:21:22 +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 33C4LLIr091892; Wed, 12 Apr 2023 04:21:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33C4LLZH091891; Wed, 12 Apr 2023 04:21:21 GMT (envelope-from git) Date: Wed, 12 Apr 2023 04:21:21 GMT Message-Id: <202304120421.33C4LLZH091891@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: dc1c5138c325 - main - powerpc: Use the existing CTLFLAG_RDTUN and CTLFLAG_RWTUN flag definitions 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: zlei X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dc1c5138c3255cc9004a3842001ed6c5db8f4ea3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=dc1c5138c3255cc9004a3842001ed6c5db8f4ea3 commit dc1c5138c3255cc9004a3842001ed6c5db8f4ea3 Author: Zhenlei Huang AuthorDate: 2023-04-12 04:20:38 +0000 Commit: Zhenlei Huang CommitDate: 2023-04-12 04:20:38 +0000 powerpc: Use the existing CTLFLAG_RDTUN and CTLFLAG_RWTUN flag definitions Use them when possible, instead of separated flags. No functional change intended. Reviewed by: hselasky, erj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D39466 --- sys/powerpc/powermac/powermac_thermal.c | 2 +- sys/powerpc/powerpc/platform.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/powerpc/powermac/powermac_thermal.c b/sys/powerpc/powermac/powermac_thermal.c index 2b1c383ded10..03dbb998559f 100644 --- a/sys/powerpc/powermac/powermac_thermal.c +++ b/sys/powerpc/powermac/powermac_thermal.c @@ -61,7 +61,7 @@ static struct kproc_desc pmac_therm_kp = { SYSINIT(pmac_therm_setup, SI_SUB_KTHREAD_IDLE, SI_ORDER_ANY, kproc_start, &pmac_therm_kp); -SYSCTL_INT(_machdep, OID_AUTO, manage_fans, CTLFLAG_RW | CTLFLAG_TUN, +SYSCTL_INT(_machdep, OID_AUTO, manage_fans, CTLFLAG_RWTUN, &enable_pmac_thermal, 1, "Enable automatic fan management"); static MALLOC_DEFINE(M_PMACTHERM, "pmactherm", "Powermac Thermal Management"); diff --git a/sys/powerpc/powerpc/platform.c b/sys/powerpc/powerpc/platform.c index 7993911a7c80..2393c266a65e 100644 --- a/sys/powerpc/powerpc/platform.c +++ b/sys/powerpc/powerpc/platform.c @@ -68,7 +68,7 @@ static struct kobj_ops plat_kernel_kops; static struct platform_kobj plat_kernel_obj; static char plat_name[64] = ""; -SYSCTL_STRING(_hw, OID_AUTO, platform, CTLFLAG_RD | CTLFLAG_TUN, +SYSCTL_STRING(_hw, OID_AUTO, platform, CTLFLAG_RDTUN, plat_name, 0, "Platform currently in use"); static struct mem_affinity mem_info[VM_PHYSSEG_MAX + 1];