1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:37:43 +00:00

Kernel: Remove unused InterruptManagement::m_smp_enabled

This commit is contained in:
Idan Horowitz 2022-09-25 15:05:04 +03:00
parent 4d5a0f1af3
commit 746bf12ac4
2 changed files with 0 additions and 4 deletions

View file

@ -142,7 +142,6 @@ UNMAP_AFTER_INIT void InterruptManagement::switch_to_pic_mode()
{
dmesgln("Interrupts: Switch to Legacy PIC mode");
InterruptDisabler disabler;
m_smp_enabled = false;
m_interrupt_controllers[0] = adopt_lock_ref(*new PIC());
SpuriousInterruptHandler::initialize(7);
SpuriousInterruptHandler::initialize(15);
@ -170,7 +169,6 @@ UNMAP_AFTER_INIT void InterruptManagement::switch_to_ioapic_mode()
dbgln("Interrupts: MADT @ P {}", m_madt.as_ptr());
locate_apic_data();
m_smp_enabled = true;
if (m_interrupt_controllers.size() == 1) {
if (get_interrupt_controller(0).type() == IRQControllerType::i8259) {
dmesgln("Interrupts: NO IOAPIC detected, Reverting to PIC mode.");