From d745d2b83c4ada7050aee5582963668fcbfa554c Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Tue, 24 May 2011 21:08:05 +0800 Subject: [PATCH] ioapic: Alias hw.apic_io_enable with hw.ioapic_enable --- sys/platform/pc32/i386/machdep.c | 3 ++- sys/platform/pc64/x86_64/machdep.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/platform/pc32/i386/machdep.c b/sys/platform/pc32/i386/machdep.c index 51dcb7ef52..dd054a5a30 100644 --- a/sys/platform/pc32/i386/machdep.c +++ b/sys/platform/pc32/i386/machdep.c @@ -1937,7 +1937,8 @@ init386(int first) */ MachIntrABI = MachIntrABI_ICU; #ifdef SMP - TUNABLE_INT_FETCH("hw.apic_io_enable", &ioapic_enable); + TUNABLE_INT_FETCH("hw.apic_io_enable", &ioapic_enable); /* for compat */ + TUNABLE_INT_FETCH("hw.ioapic_enable", &ioapic_enable); #endif /* diff --git a/sys/platform/pc64/x86_64/machdep.c b/sys/platform/pc64/x86_64/machdep.c index 65e6bc253c..326d5c6e25 100644 --- a/sys/platform/pc64/x86_64/machdep.c +++ b/sys/platform/pc64/x86_64/machdep.c @@ -1760,7 +1760,8 @@ hammer_time(u_int64_t modulep, u_int64_t physfree) */ MachIntrABI = MachIntrABI_ICU; #ifdef SMP - TUNABLE_INT_FETCH("hw.apic_io_enable", &ioapic_enable); + TUNABLE_INT_FETCH("hw.apic_io_enable", &ioapic_enable); /* for compat */ + TUNABLE_INT_FETCH("hw.ioapic_enable", &ioapic_enable); #endif /* -- 2.41.0