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
Notes: sideshowbarker 2024-07-17 06:38:55 +09:00
2 changed files with 0 additions and 4 deletions

View file

@ -51,7 +51,6 @@ public:
virtual void switch_to_pic_mode();
virtual void switch_to_ioapic_mode();
bool smp_enabled() const { return m_smp_enabled; }
LockRefPtr<IRQController> get_responsible_irq_controller(u8 interrupt_vector);
LockRefPtr<IRQController> get_responsible_irq_controller(IRQControllerType controller_type, u8 interrupt_vector);
@ -70,7 +69,6 @@ private:
InterruptManagement();
PhysicalAddress search_for_madt();
void locate_apic_data();
bool m_smp_enabled { false };
Vector<LockRefPtr<IRQController>> m_interrupt_controllers;
Vector<ISAInterruptOverrideMetadata> m_isa_interrupt_overrides;
Vector<PCIInterruptOverrideMetadata> m_pci_interrupt_overrides;

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.");