1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

Kernel: Rename GenericInterruptHandler "invoking count" to "call count"

This commit is contained in:
Andreas Kling 2022-11-18 21:39:49 +01:00
parent 8a5d2be617
commit 9b3db63e14
7 changed files with 13 additions and 11 deletions

View file

@ -37,7 +37,7 @@ public:
u8 interrupt_number() const { return m_interrupt_number; }
size_t get_invoking_count() const { return m_invoking_count; }
u32 call_count() const { return m_call_count; }
virtual size_t sharing_devices_count() const = 0;
virtual bool is_shared_handler() const = 0;
@ -48,10 +48,7 @@ public:
virtual StringView controller() const = 0;
virtual bool eoi() = 0;
ALWAYS_INLINE void increment_invoking_counter()
{
m_invoking_count++;
}
void increment_call_count();
protected:
void change_interrupt_number(u8 number);
@ -60,7 +57,7 @@ protected:
void disable_remap() { m_disable_remap = true; }
private:
Atomic<u32, AK::MemoryOrder::memory_order_relaxed> m_invoking_count { 0 };
Atomic<u32, AK::MemoryOrder::memory_order_relaxed> m_call_count { 0 };
u8 m_interrupt_number { 0 };
bool m_disable_remap { false };
bool m_registered { false };