summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-12-17 19:42:15 +0000
committertedu <tedu@openbsd.org>2014-12-17 19:42:15 +0000
commit03d1830d007e3a69f3003837cde28cc1014c0218 (patch)
treeb15a7f83b9fb62057c16070cf597e43b303edc1d /sys/kern/subr_hibernate.c
parentunroll loops for sha2. quite a bit faster for amd64. (diff)
downloadwireguard-openbsd-03d1830d007e3a69f3003837cde28cc1014c0218.tar.xz
wireguard-openbsd-03d1830d007e3a69f3003837cde28cc1014c0218.zip
remove lock.h from uvm_extern.h. another holdover from the simpletonlock
era. fix uvm including c files to include lock.h or atomic.h as necessary. ok deraadt
Diffstat (limited to 'sys/kern/subr_hibernate.c')
-rw-r--r--sys/kern/subr_hibernate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c
index 16303cd2e55..e689acad7d8 100644
--- a/sys/kern/subr_hibernate.c
+++ b/sys/kern/subr_hibernate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_hibernate.c,v 1.109 2014/11/16 12:31:00 deraadt Exp $ */
+/* $OpenBSD: subr_hibernate.c,v 1.110 2014/12/17 19:42:15 tedu Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -28,8 +28,11 @@
#include <sys/buf.h>
#include <sys/fcntl.h>
#include <sys/stat.h>
+#include <sys/atomic.h>
+
#include <uvm/uvm.h>
#include <uvm/uvm_swap.h>
+
#include <machine/hibernate.h>
/*