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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user