mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +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:
parent
c962cfdc28
commit
352f980ca2
Notes:
sideshowbarker
2024-07-17 05:22:57 +09:00
Author: https://github.com/FireFox317 Commit: https://github.com/SerenityOS/serenity/commit/352f980ca2 Pull-request: https://github.com/SerenityOS/serenity/pull/15661 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/gunnarbeutner Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue