mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:57:47 +00:00
Kernel: Run clang-format on Scheduler.cpp
This commit is contained in:
parent
07ea2b672b
commit
027c450d6d
1 changed files with 8 additions and 6 deletions
|
@ -610,7 +610,8 @@ void Scheduler::timer_tick(const RegisterState& regs)
|
||||||
{
|
{
|
||||||
ASSERT_INTERRUPTS_DISABLED();
|
ASSERT_INTERRUPTS_DISABLED();
|
||||||
ASSERT(Processor::current().in_irq());
|
ASSERT(Processor::current().in_irq());
|
||||||
if (Processor::current().id() > 0) return;
|
if (Processor::current().id() > 0)
|
||||||
|
return;
|
||||||
auto current_thread = Processor::current().current_thread();
|
auto current_thread = Processor::current().current_thread();
|
||||||
if (!current_thread)
|
if (!current_thread)
|
||||||
return;
|
return;
|
||||||
|
@ -662,7 +663,8 @@ void Scheduler::idle_loop()
|
||||||
for (;;) {
|
for (;;) {
|
||||||
asm("hlt");
|
asm("hlt");
|
||||||
|
|
||||||
if (Processor::current().id() == 0) yield();
|
if (Processor::current().id() == 0)
|
||||||
|
yield();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue