aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc
diff options
context:
space:
mode:
authorZhenlei Huang <zlei@FreeBSD.org>2023-04-12 04:20:38 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2023-04-12 04:20:38 +0000
commitdc1c5138c3255cc9004a3842001ed6c5db8f4ea3 (patch)
treefe06663834c5b050e52aed634ebfd6d887af57a6 /sys/powerpc
parent7968a06a69344cbaaa88c475b0fe7aa8c2833039 (diff)
downloadsrc-dc1c5138c3255cc9004a3842001ed6c5db8f4ea3.tar.gz
src-dc1c5138c3255cc9004a3842001ed6c5db8f4ea3.zip
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/powermac/powermac_thermal.c2
-rw-r--r--sys/powerpc/powerpc/platform.c2
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];