1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 19:25:10 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -27,7 +27,7 @@ namespace Kernel {
RecursiveSpinlock g_scheduler_lock;
static u32 time_slice_for(const Thread& thread)
static u32 time_slice_for(Thread const& thread)
{
// One time slice unit == 4ms (assuming 250 ticks/second)
if (thread.is_idle_thread())
@ -282,7 +282,7 @@ void Scheduler::context_switch(Thread* thread)
from_thread->set_state(Thread::State::Runnable);
#ifdef LOG_EVERY_CONTEXT_SWITCH
const auto msg = "Scheduler[{}]: {} -> {} [prio={}] {:#04x}:{:p}";
auto const msg = "Scheduler[{}]: {} -> {} [prio={}] {:#04x}:{:p}";
dbgln(msg,
Processor::current_id(), from_thread->tid().value(),
@ -438,7 +438,7 @@ void Scheduler::add_time_scheduled(u64 time_to_add, bool is_kernel)
});
}
void Scheduler::timer_tick(const RegisterState& regs)
void Scheduler::timer_tick(RegisterState const& regs)
{
VERIFY_INTERRUPTS_DISABLED();
VERIFY(Processor::current_in_irq());