|
@@ -214,7 +214,7 @@ static inline int __sched __down_common(struct semaphore *sem, long state,
|
|
for (;;) {
|
|
for (;;) {
|
|
if (signal_pending_state(state, task))
|
|
if (signal_pending_state(state, task))
|
|
goto interrupted;
|
|
goto interrupted;
|
|
- if (timeout <= 0)
|
|
|
|
|
|
+ if (unlikely(timeout <= 0))
|
|
goto timed_out;
|
|
goto timed_out;
|
|
__set_task_state(task, state);
|
|
__set_task_state(task, state);
|
|
raw_spin_unlock_irq(&sem->lock);
|
|
raw_spin_unlock_irq(&sem->lock);
|