sx: fix compilation on UP kernels after r313855
sx primitives use inlines as opposed to macros. Change the tested condition to LOCK_DEBUG which covers the case, but is slightly overzelaous. Reported by: kib
This commit is contained in:
parent
51f3ae3ea6
commit
ce6402c263
@ -364,7 +364,7 @@ _sx_xunlock(struct sx *sx, const char *file, int line)
|
||||
WITNESS_UNLOCK(&sx->lock_object, LOP_EXCLUSIVE, file, line);
|
||||
LOCK_LOG_LOCK("XUNLOCK", &sx->lock_object, 0, sx->sx_recurse, file,
|
||||
line);
|
||||
#ifdef LOCK_PROFILING
|
||||
#if LOCK_DEBUG > 0
|
||||
_sx_xunlock_hard(sx, (uintptr_t)curthread, file, line);
|
||||
#else
|
||||
__sx_xunlock(sx, curthread, file, line);
|
||||
|
Loading…
Reference in New Issue
Block a user