Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Needs sys/atomic.h. Only define rnd_skew when it is...
details: https://anonhg.NetBSD.org/src/rev/4cd7bf37decd
branches: trunk
changeset: 331423:4cd7bf37decd
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Aug 10 18:33:41 2014 +0000
description:
Needs sys/atomic.h. Only define rnd_skew when it is used.
diffstat:
sys/kern/kern_rndq.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r 936cbcf64740 -r 4cd7bf37decd sys/kern/kern_rndq.c
--- a/sys/kern/kern_rndq.c Sun Aug 10 18:27:15 2014 +0000
+++ b/sys/kern/kern_rndq.c Sun Aug 10 18:33:41 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_rndq.c,v 1.24 2014/08/10 16:44:36 tls Exp $ */
+/* $NetBSD: kern_rndq.c,v 1.25 2014/08/10 18:33:41 joerg Exp $ */
/*-
* Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -32,9 +32,10 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.24 2014/08/10 16:44:36 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.25 2014/08/10 18:33:41 joerg Exp $");
#include <sys/param.h>
+#include <sys/atomic.h>
#include <sys/ioctl.h>
#include <sys/fcntl.h>
#include <sys/select.h>
@@ -424,6 +425,7 @@
return ret;
}
+#if defined(__HAVE_CPU_COUNTER)
static void
rnd_skew(void *arg)
{
@@ -460,6 +462,7 @@
callout_schedule(&skew_callout, 1);
}
}
+#endif
/*
* initialize the global random pool for our use.
Home |
Main Index |
Thread Index |
Old Index