git: 7124e665dac9 - stable/13 - powerpc: Use the existing CTLFLAG_RDTUN and CTLFLAG_RWTUN flag definitions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Apr 2023 06:19:01 UTC
The branch stable/13 has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=7124e665dac97258d5df4764ad81eb0563212a65
commit 7124e665dac97258d5df4764ad81eb0563212a65
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2023-04-12 04:20:38 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2023-04-17 06:17:48 +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
(cherry picked from commit dc1c5138c3255cc9004a3842001ed6c5db8f4ea3)
---
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 6f8f0361d11f..b9513c8f4e0c 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];