diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-03-30 16:33:28 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-03-30 16:33:28 +0000 |
commit | 0dd4760b75f4222893f8bf64a55884a5d5cc8a56 (patch) | |
tree | 8fc831a583d6b6df1f2a204363232a5589409688 | |
parent | a1987e2c602829ad767a70ace887e30293688fab (diff) |
smarter heartbeat()
-rw-r--r-- | sys/arch/hppa/hppa/autoconf.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/arch/hppa/hppa/autoconf.c b/sys/arch/hppa/hppa/autoconf.c index 9f54f415159..7db2f1dfd91 100644 --- a/sys/arch/hppa/hppa/autoconf.c +++ b/sys/arch/hppa/hppa/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.8 2000/03/29 23:11:12 mickey Exp $ */ +/* $OpenBSD: autoconf.c,v 1.9 2000/03/30 16:33:27 mickey Exp $ */ /* * Copyright (c) 1998-2000 Michael Shalayeff @@ -107,7 +107,7 @@ configure() #ifdef USELEDS timeout_set(&heartbeat_tmo, heartbeat, NULL); - timeout_add(&heartbeat_tmo, hz / 8); + heatbeat(NULL); #endif } @@ -133,11 +133,14 @@ heartbeat(v) * _| |_| |_,_,_,_ * 0 1 2 3 4 6 7 */ - if (hbcnt % 8 < 4) + if (hbcnt < 4) { ledctl(0, 0, PALED_HEARTBEAT); - hbcnt++; - - timeout_add(&heartbeat_tmo, hz / 8); + hbcnt++; + timeout_add(&heartbeat_tmo, hz / 8); + } else { + hbcnt = 0; + timeout_add(&heartbeat_tmo, hz / 2); + } } #endif |