mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
Kernel: Convert Processor::in_irq() to static current_in_irq()
This closes the race window between Processor::current() and a context switch happening before in_irq().
This commit is contained in:
parent
3e3f760808
commit
d60635cb9d
14 changed files with 37 additions and 39 deletions
|
@ -403,7 +403,7 @@ void TimeManagement::increment_time_since_boot()
|
|||
|
||||
void TimeManagement::system_timer_tick(const RegisterState& regs)
|
||||
{
|
||||
if (Processor::current().in_irq() <= 1) {
|
||||
if (Processor::current_in_irq() <= 1) {
|
||||
// Don't expire timers while handling IRQs
|
||||
TimerQueue::the().fire();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue