mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Remove unused InterruptManagement::m_smp_enabled
This commit is contained in:
parent
4d5a0f1af3
commit
746bf12ac4
Notes:
sideshowbarker
2024-07-17 06:38:55 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/746bf12ac4 Pull-request: https://github.com/SerenityOS/serenity/pull/15353 Reviewed-by: https://github.com/linusg ✅ Reviewed-by: https://github.com/supercomputer7 ✅
2 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue