Kernel: Cleanup entering acpi mode

There is no need to pass the current mode as an argument as ACPI has
access to that info either way.

Only route INTx objects when using ACPI, they won't be used otherwise
This commit is contained in:
2026-07-20 09:02:18 +03:00
parent b611c3fe48
commit d46d7a5123
3 changed files with 15 additions and 16 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ static void init2(void*)
if (!cmdline.disable_acpi)
{
if (auto ret = ACPI::ACPI::get().enter_acpi_mode(InterruptController::get().is_using_apic()); ret.is_error())
if (auto ret = ACPI::ACPI::get().enter_acpi_mode(); ret.is_error())
dprintln("Failed to enter ACPI mode: {}", ret.error());
if (auto ret = ACPI::ACPI::get().initialize_acpi_devices(); ret.is_error())
dwarnln("Could not initialize ACPI devices: {}", ret.error());