Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Include MD <machine/cpu_counter.h> only if defined(...
details: https://anonhg.NetBSD.org/src/rev/6f77e9b5ef2d
branches: trunk
changeset: 771456:6f77e9b5ef2d
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Mon Nov 21 13:44:38 2011 +0000
description:
Include MD <machine/cpu_counter.h> only if defined(__HAVE_CPU_COUNTER).
XXX: Why not timecounter(9) but deprecated cpu_counter32() and microtime(9)?
diffstat:
sys/kern/subr_cprng.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 8c94d021e29c -r 6f77e9b5ef2d sys/kern/subr_cprng.c
--- a/sys/kern/subr_cprng.c Mon Nov 21 13:42:37 2011 +0000
+++ b/sys/kern/subr_cprng.c Mon Nov 21 13:44:38 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_cprng.c,v 1.1 2011/11/19 22:51:25 tls Exp $ */
+/* $NetBSD: subr_cprng.c,v 1.2 2011/11/21 13:44:38 tsutsui Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -39,11 +39,13 @@
#include <sys/rngtest.h>
#include <sys/rnd.h>
+#if defined(__HAVE_CPU_COUNTER)
#include <machine/cpu_counter.h>
+#endif
#include <sys/cprng.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_cprng.c,v 1.1 2011/11/19 22:51:25 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_cprng.c,v 1.2 2011/11/21 13:44:38 tsutsui Exp $");
void
cprng_init(void)
Home |
Main Index |
Thread Index |
Old Index