summaryrefslogtreecommitdiff
path: root/Kernel/Interrupts/SharedIRQHandler.cpp
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2020-12-02 09:41:52 -0700
committerAndreas Kling <kling@serenityos.org>2020-12-02 23:19:59 +0100
commit5e08ae4e14009d40ecd5f5428c6801eaeeffd125 (patch)
tree5271e3f26c8cc69b4815a9dd66ff1ac1ad291eda /Kernel/Interrupts/SharedIRQHandler.cpp
parentaec8983819fa0cd23ce251f91305a8c2cb4450dc (diff)
downloadserenity-5e08ae4e14009d40ecd5f5428c6801eaeeffd125.zip
Kernel: Fix counting interrupts
Move counting interrupts out of the handle_interrupt method so that it is done in all cases without the interrupt handler having to implement it explicitly. Also make the counter an atomic value as e.g. the LocalAPIC interrupts may be triggered on multiple processors simultaneously. Fixes #4297
Diffstat (limited to 'Kernel/Interrupts/SharedIRQHandler.cpp')
-rw-r--r--Kernel/Interrupts/SharedIRQHandler.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Kernel/Interrupts/SharedIRQHandler.cpp b/Kernel/Interrupts/SharedIRQHandler.cpp
index 59334012cd..6dee8047f9 100644
--- a/Kernel/Interrupts/SharedIRQHandler.cpp
+++ b/Kernel/Interrupts/SharedIRQHandler.cpp
@@ -87,7 +87,6 @@ SharedIRQHandler::~SharedIRQHandler()
void SharedIRQHandler::handle_interrupt(const RegisterState& regs)
{
ASSERT_INTERRUPTS_DISABLED();
- increment_invoking_counter();
#ifdef INTERRUPT_DEBUG
dbg() << "Interrupt @ " << interrupt_number();
dbg() << "Interrupt Handlers registered - " << m_handlers.size();