1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:37:44 +00:00

Kernel: Evaluate block conditions only once on new mouse packets

Since we're in an IRQ each of these evaluate_block_conditions() calls
enqueues a new deferred call, so to save on some space in the deferred
call queue let's just do it once.
This commit is contained in:
Idan Horowitz 2022-02-14 01:44:52 +02:00 committed by Andreas Kling
parent e384f62ee2
commit c620f18d8c

View file

@ -49,8 +49,8 @@ void VMWareMouseDevice::irq_handle_byte_read(u8)
SpinlockLocker lock(m_queue_lock);
m_queue.enqueue(mouse_packet);
}
evaluate_block_conditions();
}
evaluate_block_conditions();
}
VMWareMouseDevice::VMWareMouseDevice(const I8042Controller& ps2_controller)