From 0aea2d987e181a5d95e2cfd1cdcf3c020dc8bbb5 Mon Sep 17 00:00:00 2001 From: pooka Date: Tue, 8 Sep 2009 20:07:35 +0000 Subject: Be naughty and avoid #ifdef __HAVE_CPU_COUNTER in rump -- it's a massively MD can of purpleworms. --- sys/dev/rnd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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 -__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 #include @@ -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 -- cgit