diff --git a/sys/kern/kern_rndq.c b/sys/kern/kern_rndq.c index 917d7418b291..ec29e157c538 100644 --- a/sys/kern/kern_rndq.c +++ b/sys/kern/kern_rndq.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_rndq.c,v 1.22 2014/02/25 23:15:43 riastradh Exp $ */ +/* $NetBSD: kern_rndq.c,v 1.23 2014/03/11 20:26:08 pooka Exp $ */ /*- * Copyright (c) 1997-2013 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.22 2014/02/25 23:15:43 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.23 2014/03/11 20:26:08 pooka Exp $"); #include #include @@ -58,7 +58,7 @@ __KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.22 2014/02/25 23:15:43 riastradh Exp #include -#if defined(__HAVE_CPU_COUNTER) && !defined(_RUMPKERNEL) /* XXX: bad pooka */ +#if defined(__HAVE_CPU_COUNTER) #include #endif @@ -183,7 +183,7 @@ rnd_counter(void) { struct timeval tv; -#if defined(__HAVE_CPU_COUNTER) && !defined(_RUMPKERNEL) /* XXX: bad pooka */ +#if defined(__HAVE_CPU_COUNTER) if (cpu_hascounter()) return (cpu_counter32()); #endif @@ -329,7 +329,7 @@ rnd_estimate_entropy(krndsource_t *rs, u_int32_t t) return (1); } -#if defined(__HAVE_CPU_COUNTER) && !defined(_RUMPKERNEL) +#if defined(__HAVE_CPU_COUNTER) static void rnd_skew(void *arg) { @@ -432,7 +432,7 @@ rnd_init(void) * XXX clocking the callout mechanism. How to get this right * XXX without unsightly spelunking in the timecounter code? */ -#if defined(__HAVE_CPU_COUNTER) && !defined(_RUMPKERNEL) /* XXX: bad pooka */ +#if defined(__HAVE_CPU_COUNTER) callout_init(&skew_callout, CALLOUT_MPSAFE); callout_setfunc(&skew_callout, rnd_skew, NULL); rnd_skew(NULL);