summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-05-29 18:53:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-05-29 18:53:53 +0000
commit3a9bcd281374fc13030a84abca6152545feb52c9 (patch)
tree268997c8dc81d97a8e395b633a9ea63188c6c972
parent2f0183bf9ee1a71099763f7fe9b654d8d06cf85f (diff)
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