summaryrefslogtreecommitdiff
path: root/sys/dev/rnd.c
diff options
context:
space:
mode:
authorpooka <pooka@NetBSD.org>2009-09-08 20:07:35 +0000
committerpooka <pooka@NetBSD.org>2009-09-08 20:07:35 +0000
commit0aea2d987e181a5d95e2cfd1cdcf3c020dc8bbb5 (patch)
tree29ce3e4e7fc0af7886941b13a0794f26ecbe7f6a /sys/dev/rnd.c
parent795229a9f573c6e51eb9ae7f4b25294f2105704b (diff)
Be naughty and avoid #ifdef __HAVE_CPU_COUNTER in rump -- it's a
massively MD can of purpleworms.
Diffstat (limited to 'sys/dev/rnd.c')
-rw-r--r--sys/dev/rnd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c
index 89d043f0b42..dd6d1e4cbe6 100644
--- a/sys/dev/rnd.c
+++ b/sys/dev/rnd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rnd.c,v 1.72 2009/05/05 21:03:29 elad Exp $ */
+/* $NetBSD: rnd.c,v 1.73 2009/09/08 20:07:35 pooka Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.72 2009/05/05 21:03:29 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.73 2009/09/08 20:07:35 pooka Exp $");
#include <sys/param.h>
#include <sys/ioctl.h>
@@ -178,7 +178,7 @@ rnd_counter(void)
{
struct timeval tv;
-#ifdef __HAVE_CPU_COUNTER
+#if defined(__HAVE_CPU_COUNTER) && !defined(_RUMPKERNEL) /* XXX: bad pooka */
if (cpu_hascounter())
return (cpu_counter32());
#endif