aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorJason Evans <jasone@FreeBSD.org>2000-10-04 01:21:58 +0000
committerJason Evans <jasone@FreeBSD.org>2000-10-04 01:21:58 +0000
commit645b8b81f004da9bf1d09dd4707177be1640f1f9 (patch)
treea016f5941786a500f4d23313271383c948cbb42c /sys/amd64/include
parentd389654761e876632c4a90f118bd2e7fb04d9660 (diff)
Notes
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/mutex.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/amd64/include/mutex.h b/sys/amd64/include/mutex.h
index 1bbe0e0d3c5a..ca518d98fd44 100644
--- a/sys/amd64/include/mutex.h
+++ b/sys/amd64/include/mutex.h
@@ -33,10 +33,11 @@
#define _MACHINE_MUTEX_H_
#ifndef LOCORE
+#include <sys/queue.h>
+#ifdef _KERNEL
#include <sys/ktr.h>
#include <sys/proc.h> /* Needed for curproc. */
-#include <sys/queue.h>
#include <machine/atomic.h>
#include <machine/cpufunc.h>
#include <machine/globals.h>
@@ -76,6 +77,8 @@
#define MTX_FLAGMASK ~(MTX_RECURSE | MTX_CONTESTED)
#define MTX_UNOWNED 0x8 /* Cookie for free mutex */
+#endif /* _KERNEL */
+
/*
* Sleep/spin mutex
*/