scheduler, kernel/util: Fix style issues
This commit is contained in:
@@ -1311,7 +1311,7 @@ scheduler_on_thread_init(Thread* thread)
|
|||||||
thread->scheduler_data->Init();
|
thread->scheduler_data->Init();
|
||||||
|
|
||||||
if (thread_is_idle_thread(thread)) {
|
if (thread_is_idle_thread(thread)) {
|
||||||
static int32 gIdleThreadsID;
|
static int32 sIdleThreadsID;
|
||||||
int32 cpu = atomic_add(&gIdleThreadsID, 1);
|
int32 cpu = atomic_add(&gIdleThreadsID, 1);
|
||||||
|
|
||||||
thread->previous_cpu = &gCPU[cpu];
|
thread->previous_cpu = &gCPU[cpu];
|
||||||
@@ -1344,7 +1344,7 @@ scheduler_start(void)
|
|||||||
static inline void
|
static inline void
|
||||||
acquire_big_scheduler_lock(void)
|
acquire_big_scheduler_lock(void)
|
||||||
{
|
{
|
||||||
for (int32_t i = 0; i < smp_get_num_cpus(); i++)
|
for (int32 i = 0; i < smp_get_num_cpus(); i++)
|
||||||
acquire_write_spinlock(&gCPUEntries[i].fSchedulerModeLock);
|
acquire_write_spinlock(&gCPUEntries[i].fSchedulerModeLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1352,7 +1352,7 @@ acquire_big_scheduler_lock(void)
|
|||||||
static inline void
|
static inline void
|
||||||
release_big_scheduler_lock(void)
|
release_big_scheduler_lock(void)
|
||||||
{
|
{
|
||||||
for (int32_t i = 0; i < smp_get_num_cpus(); i++)
|
for (int32 i = 0; i < smp_get_num_cpus(); i++)
|
||||||
release_write_spinlock(&gCPUEntries[i].fSchedulerModeLock);
|
release_write_spinlock(&gCPUEntries[i].fSchedulerModeLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user