Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Cull another unused rndpool routine.



details:   https://anonhg.NetBSD.org/src/rev/1d2ae1129b13
branches:  trunk
changeset: 807551:1d2ae1129b13
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Apr 13 23:24:33 2015 +0000

description:
Cull another unused rndpool routine.

diffstat:

 sys/kern/kern_rndpool.c |  16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diffs (37 lines):

diff -r f893b8b44c7e -r 1d2ae1129b13 sys/kern/kern_rndpool.c
--- a/sys/kern/kern_rndpool.c   Mon Apr 13 23:21:03 2015 +0000
+++ b/sys/kern/kern_rndpool.c   Mon Apr 13 23:24:33 2015 +0000
@@ -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 @@
        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



Home | Main Index | Thread Index | Old Index