mtx: microoptimize lockstat handling in __mtx_lock_sleep
authormjg <mjg@FreeBSD.org>
Fri, 17 Feb 2017 14:55:59 +0000 (14:55 +0000)
committermjg <mjg@FreeBSD.org>
Fri, 17 Feb 2017 14:55:59 +0000 (14:55 +0000)
commit51590b2f62748489fd7fb7d9e7ee6a2041bb9660
tree7c36eee887fac2a3fa4f297007a676398b9394eb
parentb589f4406ac505e21ab3c0d6685840cfd03dfd1e
mtx: microoptimize lockstat handling in __mtx_lock_sleep

This saves a function call and multiple branches after the lock is acquired.
sys/kern/kern_lockstat.c
sys/kern/kern_mutex.c
sys/sys/lockstat.h