From 711027625011e736b6735d441c5d8eea4a504ee7 Mon Sep 17 00:00:00 2001 From: niklas Date: Sun, 5 Jan 1997 11:08:58 +0000 Subject: Remove lots of timer_state structs as they just ate memory and only a few was ever used. Now a single state is kept for net, tty and disk events resp. Also, call the randomness from disk_unbusy instead of biodone, as biodone gets a lot of virtual events (from virtual filesystems etc), and as a bonus: feed xfer time and size into the entropy pool too. --- sys/kern/subr_disk.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/kern/subr_disk.c') diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 960f4f6d715..6caec0043fe 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -56,6 +56,8 @@ #include #include /* XXX */ +#include + /* * A global list of all disks attached to the system. May grow or * shrink over time. @@ -390,6 +392,8 @@ disk_unbusy(diskp, bcount) diskp->dk_xfer++; } diskp->dk_seek++; + + add_disk_randomness(bcount ^ diff_time.tv_usec); } /* -- cgit v1.2.3-59-g8ed1b