diff options
author | Zhenlei Huang <zlei@FreeBSD.org> | 2023-10-17 07:05:25 +0000 |
---|---|---|
committer | Zhenlei Huang <zlei@FreeBSD.org> | 2023-10-21 01:31:58 +0000 |
commit | 12cce5994b92f8235f379d660ccb28da8e69f55b (patch) | |
tree | 256ed33b0b0a0792de0d57fd2ff5084510fa71c9 /sys/x86/acpica/madt.c | |
parent | 9e7f349ff10691c2e3fb03898dbc942794a47566 (diff) | |
download | src-12cce5994b92f8235f379d660ccb28da8e69f55b.tar.gz src-12cce5994b92f8235f379d660ccb28da8e69f55b.zip |
x86: Prefer consistent naming for loader tunables
The following loader tunables do have corresponding sysctl MIBs but
with inconsistent naming. That may be historical reason. Let's prefer
consistent naming for them so that it will be easier to maintain.
1. hw.dmar.timeout -> hw.iommu.dmar.timeout
2. hw.lapic_eoi_suppression -> hw.apic.eoi_suppression
3. hw.lapic_tsc_deadline -> hw.apic.timer_tsc_deadline
4. hw.x2apic_enable -> hw.apic.x2apic_mode
Those tunables are for field debugging, no need to keep old names for
compatibility.
Reviewed by: kib
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D42248
Diffstat (limited to 'sys/x86/acpica/madt.c')
-rw-r--r-- | sys/x86/acpica/madt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/x86/acpica/madt.c b/sys/x86/acpica/madt.c index 3d7c5a67375b..200eec1fbb28 100644 --- a/sys/x86/acpica/madt.c +++ b/sys/x86/acpica/madt.c @@ -221,7 +221,7 @@ madt_setup_local(void) else if (bootverbose) printf("x2APIC available but disabled %s\n", reason); user_x2apic = x2apic_mode; - TUNABLE_INT_FETCH("hw.x2apic_enable", &user_x2apic); + TUNABLE_INT_FETCH("hw.apic.x2apic_mode", &user_x2apic); if (user_x2apic != x2apic_mode) { if (bios_x2apic && !user_x2apic) printf("x2APIC disabled by tunable and " |