Module Name: src
Committed By: riastradh
Date: Mon Apr 13 23:24:33 UTC 2015
Modified Files:
src/sys/kern: kern_rndpool.c
Log Message:
Cull another unused rndpool routine.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/kern/kern_rndpool.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/kern_rndpool.c
diff -u src/sys/kern/kern_rndpool.c:1.10 src/sys/kern/kern_rndpool.c:1.11
--- src/sys/kern/kern_rndpool.c:1.10 Mon Apr 13 23:21:03 2015
+++ src/sys/kern/kern_rndpool.c Mon Apr 13 23:24:33 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_rndpool.c,v 1.10 2015/04/13 23:21:03 riastradh Exp $ */
+/* $NetBSD: kern_rndpool.c,v 1.11 2015/04/13 23:24:33 riastradh Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_rndpool.c,v 1.10 2015/04/13 23:21:03 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndpool.c,v 1.11 2015/04/13 23:24:33 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -97,18 +97,6 @@ void rndpool_get_stats(rndpool_t *rp, vo
memcpy(rsp, &rp->stats, size);
}
-static void __used /* XXX soon */
-rndpool_increment_entropy_count(rndpool_t *rp, u_int32_t entropy)
-{
-
- rp->stats.curentropy += entropy;
- rp->stats.added += entropy;
- if (rp->stats.curentropy > RND_POOLBITS) {
- rp->stats.discarded += (rp->stats.curentropy - RND_POOLBITS);
- rp->stats.curentropy = RND_POOLBITS;
- }
-}
-
/*
* The input function treats the contents of the pool as an array of
* 32 LFSR's of length RND_POOLWORDS, one per bit-plane. The LFSR's