summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-05-29 18:53:52 +0000
committerderaadt <deraadt@openbsd.org>2007-05-29 18:53:52 +0000
commitdf29cd6561b5ba41d08bef1d1f20551c4432f65c (patch)
tree861fa89ffa8178e99a0073cad01a7a5b7c1012fd
parentChange getnewbuf from taking lots of sleep arguments and then doing magic (diff)
downloadwireguard-openbsd-df29cd6561b5ba41d08bef1d1f20551c4432f65c.tar.xz
wireguard-openbsd-df29cd6561b5ba41d08bef1d1f20551c4432f65c.zip
take a lot more stuff out of userland namespace (sysctl cared about ksensor use); ok tedu
-rw-r--r--sys/arch/amd64/include/cpu.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/cpu.h b/sys/arch/amd64/include/cpu.h
index c99ec07058f..2bf7a3660a4 100644
--- a/sys/arch/amd64/include/cpu.h
+++ b/sys/arch/amd64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.30 2007/05/29 06:31:44 tedu Exp $ */
+/* $OpenBSD: cpu.h,v 1.31 2007/05/29 18:53:52 deraadt Exp $ */
/* $NetBSD: cpu.h,v 1.1 2003/04/26 18:39:39 fvdl Exp $ */
/*-
@@ -57,6 +57,8 @@
#include <sys/sched.h>
#include <sys/sensors.h>
+#ifdef _KERNEL
+
struct cpu_info {
struct device *ci_dev;
struct cpu_info *ci_self;
@@ -200,6 +202,8 @@ extern struct cpu_info cpu_info_primary;
#endif /* MULTIPROCESSOR */
+#endif /* _KERNEL */
+
#include <machine/psl.h>
#ifdef MULTIPROCESSOR