summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2011-05-29 12:29:29 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2011-05-29 12:29:29 +0000
commit16cb993a1babc4614540410c9c090ec9da917c71 (patch)
treeb861855fe4559928f2dcdff9064fe98ea84ae227 /sys/arch/i386
parentd752c1fdfc0f7ca89422a46a0092b738dd17a52e (diff)
Let this compile on kernels without acpicpu.
Problem found by Nathanael Rensen (nathanael at polymorpheus dot com)
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/k1x-pstate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/k1x-pstate.c b/sys/arch/i386/i386/k1x-pstate.c
index 875c9a23d6c..784485fdd98 100644
--- a/sys/arch/i386/i386/k1x-pstate.c
+++ b/sys/arch/i386/i386/k1x-pstate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: k1x-pstate.c,v 1.1 2011/05/23 09:54:20 claudio Exp $ */
+/* $OpenBSD: k1x-pstate.c,v 1.2 2011/05/29 12:29:28 claudio Exp $ */
/*
* Copyright (c) 2011 Bryan Steele <brynet@gmail.com>
*
@@ -172,7 +172,9 @@ k1x_acpi_init(struct k1x_cpu_state *cstate, u_int64_t msr)
void
k1x_init(struct cpu_info *ci)
{
+#if NACPICPU > 0
u_int64_t msr;
+#endif
u_int i;
struct k1x_cpu_state *cstate;
struct k1x_state *state;