diff options
| author | 2008-09-10 14:01:22 +0000 | |
|---|---|---|
| committer | 2008-09-10 14:01:22 +0000 | |
| commit | e15e1c8c1b0f8079e70cf84a08c3e3cc51ef6b53 (patch) | |
| tree | d3d8a7030040a3af4c3c262455d8acd4f4d4bebd /sys/dev/rnd.c | |
| parent | There's no need to fully traverse the wakeup queue when waking a specific (diff) | |
| download | wireguard-openbsd-e15e1c8c1b0f8079e70cf84a08c3e3cc51ef6b53.tar.xz wireguard-openbsd-e15e1c8c1b0f8079e70cf84a08c3e3cc51ef6b53.zip | |
Convert timeout_add() calls using multiples of hz to timeout_add_sec()
Really just the low-hanging fruit of (hopefully) forthcoming timeout
conversions.
ok art@, krw@
Diffstat (limited to 'sys/dev/rnd.c')
| -rw-r--r-- | sys/dev/rnd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c index 015c93f534f..3cd0a96ec1c 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rnd.c,v 1.92 2008/06/11 19:38:00 djm Exp $ */ +/* $OpenBSD: rnd.c,v 1.93 2008/09/10 14:01:23 blambert Exp $ */ /* * rnd.c -- A strong random number generator @@ -819,7 +819,6 @@ arc4_reinit(void *v) static void arc4maybeinit(void) { - extern int hz; if (!arc4random_initialized) { #ifdef DIAGNOSTIC @@ -829,7 +828,7 @@ arc4maybeinit(void) arc4random_initialized++; arc4_stir(); /* 10 minutes, per dm@'s suggestion */ - timeout_add(&arc4_timeout, 10 * 60 * hz); + timeout_add_sec(&arc4_timeout, 10 * 60); } } |
