sx: fix up non-smp compilation after r327397

This commit is contained in:
mjg 2017-12-31 01:59:56 +00:00
parent d55e4600b3
commit 38154309c8

View File

@ -675,8 +675,8 @@ _sx_xlock_hard(struct sx *sx, uintptr_t x, int opts LOCK_FILE_LINE_ARG_DEF)
continue;
sleep_reason = 2;
}
#endif
sleepq:
#endif
sleepq_lock(&sx->lock_object);
x = SX_READ_VALUE(sx);
retry_sleepq:
@ -1000,9 +1000,9 @@ _sx_slock_hard(struct sx *sx, int opts, uintptr_t x LOCK_FILE_LINE_ARG_DEF)
sched_tdname(curthread), "running");
continue;
}
sleepq:
#endif
sleepq:
/*
* Some other thread already has an exclusive lock, so
* start the process of blocking.