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/pci/if_bge.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/pci/if_bge.c')
-rw-r--r-- | sys/dev/pci/if_bge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 3b9959d4b60..1c330c05fe9 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.242 2008/09/08 08:10:54 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.243 2008/09/10 14:01:22 blambert Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -2709,7 +2709,7 @@ bge_tick(void *xsc) mii_tick(mii); } - timeout_add(&sc->bge_timeout, hz); + timeout_add_sec(&sc->bge_timeout, 1); splx(s); } @@ -3152,7 +3152,7 @@ bge_init(void *xsc) splx(s); - timeout_add(&sc->bge_timeout, hz); + timeout_add_sec(&sc->bge_timeout, 1); } /* |