summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorariane <ariane@openbsd.org>2011-07-08 17:58:16 +0000
committerariane <ariane@openbsd.org>2011-07-08 17:58:16 +0000
commit088aa6da3d5d18133795f547ea511607f2aad1c6 (patch)
treee877507ccc9dbdc0c09ed9f7f7f5c283c9528e5e
parentclean up .HP, .IP, .TP, .nf, and \c handling in -T[x]html; (diff)
downloadwireguard-openbsd-088aa6da3d5d18133795f547ea511607f2aad1c6.tar.xz
wireguard-openbsd-088aa6da3d5d18133795f547ea511607f2aad1c6.zip
Move hiballoc to hibernate.h, subr_hibernate.c
Next few commits will move other hibernate-specific functionality, like the pig-allocator, to subr_hibernate. No functional change, no callers either.
-rw-r--r--sys/conf/files4
-rw-r--r--sys/kern/subr_hibernate.c (renamed from sys/kern/subr_hiballoc.c)4
-rw-r--r--sys/sys/hibernate.h (renamed from sys/sys/hiballoc.h)8
3 files changed, 8 insertions, 8 deletions
diff --git a/sys/conf/files b/sys/conf/files
index eaae39a4db0..ad16d0cecf6 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -1,4 +1,4 @@
-# $OpenBSD: files,v 1.520 2011/07/07 02:57:24 deraadt Exp $
+# $OpenBSD: files,v 1.521 2011/07/08 17:58:16 ariane Exp $
# $NetBSD: files,v 1.87 1996/05/19 17:17:50 jonathan Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
@@ -721,7 +721,7 @@ file kern/subr_autoconf.c
file kern/subr_disk.c
file kern/subr_evcount.c
file kern/subr_extent.c
-file kern/subr_hiballoc.c !small_kernel
+file kern/subr_hibernate.c !small_kernel
file kern/subr_log.c
file kern/subr_pool.c
file kern/dma_alloc.c
diff --git a/sys/kern/subr_hiballoc.c b/sys/kern/subr_hibernate.c
index c6be48b94a1..51d376b126e 100644
--- a/sys/kern/subr_hiballoc.c
+++ b/sys/kern/subr_hibernate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_hiballoc.c,v 1.5 2011/07/06 20:47:07 miod Exp $ */
+/* $OpenBSD: subr_hibernate.c,v 1.1 2011/07/08 17:58:16 ariane Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -16,7 +16,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/hiballoc.h>
+#include <sys/hibernate.h>
#include <sys/param.h>
#include <sys/tree.h>
#include <sys/types.h>
diff --git a/sys/sys/hiballoc.h b/sys/sys/hibernate.h
index 3b4012a49ce..cd3d18ab6e4 100644
--- a/sys/sys/hiballoc.h
+++ b/sys/sys/hibernate.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hiballoc.h,v 1.4 2011/07/06 19:42:49 ariane Exp $ */
+/* $OpenBSD: hibernate.h,v 1.1 2011/07/08 17:58:16 ariane Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -16,8 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef _SYS_HIBALLOC_H_
-#define _SYS_HIBALLOC_H_
+#ifndef _SYS_HIBERNATE_H_
+#define _SYS_HIBERNATE_H_
#include <sys/types.h>
#include <sys/tree.h>
@@ -39,4 +39,4 @@ void *hib_alloc(struct hiballoc_arena*, size_t);
void hib_free(struct hiballoc_arena*, void*);
int hiballoc_init(struct hiballoc_arena*, void*, size_t len);
-#endif /* _SYS_HIBALLOC_H_ */
+#endif /* _SYS_HIBERNATE_H_ */