summaryrefslogtreecommitdiff
path: root/sys/kern/subr_percpu.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2016-10-24 03:15:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2016-10-24 03:15:39 +0000
commit62f6cef61c385b9ceb428485e396f1ff11e7f0e0 (patch)
tree18614635362e081d5d6f0b4faae168d62e334ccf /sys/kern/subr_percpu.c
parent861f776aa565f874b0642b16fda8c58b6afd9455 (diff)
non-MP vs MP codepaths were confusingly split between the .c and .h file.
Unify these by placing #ifdef MULTIPROCESSOR inside the functions, then collapse further to reduce _KERNEL blocks ok dlg
Diffstat (limited to 'sys/kern/subr_percpu.c')
-rw-r--r--sys/kern/subr_percpu.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/kern/subr_percpu.c b/sys/kern/subr_percpu.c
index f5d2564a946..f03a56fd9c3 100644
--- a/sys/kern/subr_percpu.c
+++ b/sys/kern/subr_percpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_percpu.c,v 1.2 2016/10/21 06:41:52 dlg Exp $ */
+/* $OpenBSD: subr_percpu.c,v 1.3 2016/10/24 03:15:38 deraadt Exp $ */
/*
* Copyright (c) 2016 David Gwynne <dlg@openbsd.org>
@@ -270,6 +270,18 @@ cpumem_free(struct cpumem *cm, int type, size_t sz)
free(cm, type, sz);
}
+void *
+cpumem_first(struct cpumem_iter *i, struct cpumem *cm)
+{
+ return (cm);
+}
+
+void *
+cpumem_next(struct cpumem_iter *i, struct cpumem *cm)
+{
+ return (NULL);
+}
+
struct cpumem *
counters_alloc(unsigned int n, int type)
{