1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-09 11:20:46 +00:00

Kernel: Call Processor::are_interrupts_enabled in Scheduler::idle_loop

This expresses the intent better, and we shouldn't be calling global
functions anyway.
This commit is contained in:
Timon Kruiper 2022-10-17 19:59:48 +02:00 committed by Linus Groh
parent c962cfdc28
commit 352f980ca2

View File

@ -475,7 +475,7 @@ void Scheduler::idle_loop(void*)
{
auto& proc = Processor::current();
dbgln("Scheduler[{}]: idle loop running", proc.id());
VERIFY(are_interrupts_enabled());
VERIFY(Processor::are_interrupts_enabled());
for (;;) {
proc.idle_begin();