Fix codestyle violation:
Multiline statements after if should always be in a code block. No functional change.
This commit is contained in:
@@ -500,9 +500,10 @@ affine_reschedule(void)
|
||||
&& nextThread->priority < B_NORMAL_PRIORITY)
|
||||
quantum = kMaxThreadQuantum;
|
||||
|
||||
if (!thread_is_idle_thread(nextThread))
|
||||
if (!thread_is_idle_thread(nextThread)) {
|
||||
add_timer(quantumTimer, &reschedule_event, quantum,
|
||||
B_ONE_SHOT_RELATIVE_TIMER | B_TIMER_ACQUIRE_SCHEDULER_LOCK);
|
||||
}
|
||||
|
||||
if (nextThread != oldThread)
|
||||
scheduler_switch_thread(oldThread, nextThread);
|
||||
|
||||
@@ -324,9 +324,10 @@ simple_reschedule(void)
|
||||
cancel_timer(quantumTimer);
|
||||
|
||||
oldThread->cpu->preempted = 0;
|
||||
if (!thread_is_idle_thread(nextThread))
|
||||
if (!thread_is_idle_thread(nextThread)) {
|
||||
add_timer(quantumTimer, &reschedule_event, quantum,
|
||||
B_ONE_SHOT_RELATIVE_TIMER | B_TIMER_ACQUIRE_SCHEDULER_LOCK);
|
||||
}
|
||||
|
||||
if (nextThread != oldThread)
|
||||
scheduler_switch_thread(oldThread, nextThread);
|
||||
|
||||
@@ -423,9 +423,10 @@ reschedule(void)
|
||||
cancel_timer(quantumTimer);
|
||||
|
||||
oldThread->cpu->preempted = 0;
|
||||
if (!thread_is_idle_thread(nextThread))
|
||||
if (!thread_is_idle_thread(nextThread)) {
|
||||
add_timer(quantumTimer, &reschedule_event, quantum,
|
||||
B_ONE_SHOT_RELATIVE_TIMER | B_TIMER_ACQUIRE_SCHEDULER_LOCK);
|
||||
}
|
||||
|
||||
if (nextThread != oldThread)
|
||||
scheduler_switch_thread(oldThread, nextThread);
|
||||
|
||||
Reference in New Issue
Block a user