summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2006-11-11 07:35:54 +0000
committerkmacy <kmacy@FreeBSD.org>2006-11-11 07:35:54 +0000
commit2e86adafd00892a1f0b05e62be161cd5379dbbac (patch)
treed225894d611c7d846d652ebd650caed040f4910c /sys/sys
parent2aebfa38b5b22d2c7cfc558b5b6fb13d5d1a8023 (diff)
downloadFreeBSD-src-2e86adafd00892a1f0b05e62be161cd5379dbbac.zip
FreeBSD-src-2e86adafd00892a1f0b05e62be161cd5379dbbac.tar.gz
declare nanoseconds for other architectures
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/lock_profile.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/lock_profile.h b/sys/sys/lock_profile.h
index 62d1fb5..6e837d1 100644
--- a/sys/sys/lock_profile.h
+++ b/sys/sys/lock_profile.h
@@ -39,7 +39,11 @@
#ifndef LPROF_HASH_SIZE
#define LPROF_HASH_SIZE 4096
#define LPROF_HASH_MASK (LPROF_HASH_SIZE - 1)
+
+#ifndef USE_CPU_NANOSECONDS
+u_int64_t nanoseconds(void);
#endif
+
struct lock_prof {
const char *name;
const char *file;
OpenPOWER on IntegriCloud