diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-01-05 11:09:04 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-01-05 11:09:04 +0000 |
commit | d477b56cac6c81b3c26380477da5f767bfc7cc7e (patch) | |
tree | 8d6a347fbe1602aeed5b39043708cda50901c247 /sys/kern/tty.c | |
parent | 3afc301960a4fcf28a198f9f4d1d327a0837f83b (diff) |
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.
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index d3c8cf260ad..1dbbcdccaad 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.24 1996/12/19 07:54:06 tholo Exp $ */ +/* $OpenBSD: tty.c,v 1.25 1997/01/05 11:09:02 niklas Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -237,7 +237,7 @@ ttyinput(c, tp) register u_char *cc; int i, error; - add_tty_randomness(tp->t_dev, c); + add_tty_randomness(tp->t_dev << 8 | c); /* * If receiver is not enable, drop it. */ |