Fix codestyle violation:

Multiline statements after if should always be in a code block.
No functional change.
This commit is contained in:
Fredrik Holmqvist 2012-05-14 20:14:47 +02:00
parent b0df02004f
commit 78af90d494
3 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);