From 346e789a21882595ca008f58303ab76787691dc7 Mon Sep 17 00:00:00 2001 From: Pawel Dziepak Date: Tue, 8 Oct 2013 20:15:21 +0200 Subject: [PATCH] kernel: Fix style issues --- src/system/kernel/scheduler/scheduler_simple.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/system/kernel/scheduler/scheduler_simple.cpp b/src/system/kernel/scheduler/scheduler_simple.cpp index 2cafe65dd2..3601c0a6a4 100644 --- a/src/system/kernel/scheduler/scheduler_simple.cpp +++ b/src/system/kernel/scheduler/scheduler_simple.cpp @@ -92,7 +92,7 @@ dump_queue(RunQueue::ConstIterator& iterator) else { kprintf("thread id priority penalty name\n"); while (iterator.HasNext()) { - Thread *thread = iterator.Next(); + Thread* thread = iterator.Next(); scheduler_thread_data* schedulerThreadData = reinterpret_cast( thread->scheduler_data); @@ -105,7 +105,7 @@ dump_queue(RunQueue::ConstIterator& iterator) static int -dump_run_queue(int argc, char **argv) +dump_run_queue(int argc, char** argv) { RunQueue::ConstIterator iterator; kprintf("Current run queue:\n"); @@ -129,7 +129,7 @@ simple_yield(Thread* thread) static inline int32 -simple_get_effective_priority(Thread *thread) +simple_get_effective_priority(Thread* thread) { if (thread->priority == B_IDLE_PRIORITY) return thread->priority; @@ -157,7 +157,7 @@ simple_get_effective_priority(Thread *thread) static inline void -simple_increase_penalty(Thread *thread) +simple_increase_penalty(Thread* thread) { if (thread->priority <= B_LOWEST_ACTIVE_PRIORITY) return; @@ -181,7 +181,7 @@ simple_increase_penalty(Thread *thread) static inline void -simple_cancel_penalty(Thread *thread) +simple_cancel_penalty(Thread* thread) { scheduler_thread_data* schedulerThreadData = reinterpret_cast(thread->scheduler_data); @@ -200,7 +200,7 @@ simple_cancel_penalty(Thread *thread) Note: thread lock must be held when entering this function */ static void -simple_enqueue_in_run_queue(Thread *thread) +simple_enqueue_in_run_queue(Thread* thread) { thread->state = thread->next_state = B_THREAD_READY; @@ -243,7 +243,7 @@ simple_enqueue_in_run_queue(Thread *thread) Note: thread lock must be held when entering this function */ static void -simple_set_thread_priority(Thread *thread, int32 priority) +simple_set_thread_priority(Thread* thread, int32 priority) { if (priority == thread->priority) return; @@ -290,7 +290,7 @@ simple_estimate_max_scheduling_latency(Thread* thread) static int32 -reschedule_event(timer *unused) +reschedule_event(timer* /* unused */) { // This function is called as a result of the timer event set by the // scheduler. Make sure the reschedule() is invoked.