diff options
author | kmacy <kmacy@FreeBSD.org> | 2006-11-11 07:28:45 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2006-11-11 07:28:45 +0000 |
commit | 2aebfa38b5b22d2c7cfc558b5b6fb13d5d1a8023 (patch) | |
tree | 0198a8696e0a883b6c9fae28796b4698cc77360b /sys/sys | |
parent | 99d39b00e0cbc934c7bdcbad9199ce8197367991 (diff) | |
download | FreeBSD-src-2aebfa38b5b22d2c7cfc558b5b6fb13d5d1a8023.zip FreeBSD-src-2aebfa38b5b22d2c7cfc558b5b6fb13d5d1a8023.tar.gz |
remove lingering call to rd(tick)
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/lock_profile.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/lock_profile.h b/sys/sys/lock_profile.h index c4b33e7..62d1fb5 100644 --- a/sys/sys/lock_profile.h +++ b/sys/sys/lock_profile.h @@ -34,6 +34,7 @@ #include <sys/stdint.h> #include <sys/ktr.h> #include <sys/mutex.h> +#include <machine/cpufunc.h> #ifndef LPROF_HASH_SIZE #define LPROF_HASH_SIZE 4096 @@ -122,7 +123,7 @@ lock_profile_object_destroy(struct lock_object *lo) static inline void lock_profile_waitstart(uint64_t *waittime) { if (lock_prof_enable) - *waittime = rd(tick); + *waittime = nanoseconds(); } static inline void lock_profile_obtain_lock_failed(struct lock_object *lo, int *contested) |