K 10 svn:author V 3 mjg K 8 svn:date V 27 2018-01-01T23:45:09.363159Z K 7 svn:log V 419 MFC r327394,r327395: mtx: pre-read the lock value in thread_lock_flags_ Since this function is effectively slow path, if we get here the lock is most likely already taken in which case it is cheaper to not blindly attempt the atomic op. While here move hwpmc probe out of the loop to match other primitives. ============= mtx: deduplicate indefinite wait check in spinlocks and thread lock END