summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/mutex.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/include/mutex.h')
-rw-r--r--sys/amd64/include/mutex.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/amd64/include/mutex.h b/sys/amd64/include/mutex.h
index a2285cd..ab8a953 100644
--- a/sys/amd64/include/mutex.h
+++ b/sys/amd64/include/mutex.h
@@ -35,6 +35,7 @@
#ifndef LOCORE
#include <sys/ktr.h>
+#include <sys/proc.h> /* Needed for curproc. */
#include <sys/queue.h>
#include <machine/atomic.h>
#include <machine/cpufunc.h>
@@ -75,8 +76,6 @@
#define MTX_FLAGMASK ~(MTX_RECURSE | MTX_CONTESTED)
#define MTX_UNOWNED 0x8 /* Cookie for free mutex */
-struct proc; /* XXX */
-
/*
* Sleep/spin mutex
*/
@@ -569,7 +568,7 @@ void witness_restore(struct mtx *, const char *, int);
/*
* KTR_EXTEND saves file name and line for all entries, so we don't need them
* here. Theoretically we should also change the entries which refer to them
- * (from CTR5 to CTR3), but since they're just passed to snprinf as the last
+ * (from CTR5 to CTR3), but since they're just passed to snprintf as the last
* parameters, it doesn't do any harm to leave them.
*/
char STR_mtx_enter_fmt[] = "GOT %s [%x] r=%d";
OpenPOWER on IntegriCloud