diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-07-30 21:18:10 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-07-30 21:18:10 +0000 |
commit | 391e258a18bf2833fd9866a81634a628216860d1 (patch) | |
tree | 75961547145a0c770343018d57a9e6d50b858039 | |
parent | b0a12e5e522647cf5caee070c547cc349e4194a1 (diff) |
give those leds some haste
-rw-r--r-- | sys/arch/hppa/hppa/autoconf.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/hppa/hppa/autoconf.c b/sys/arch/hppa/hppa/autoconf.c index 4e18f30d39f..30409cc1496 100644 --- a/sys/arch/hppa/hppa/autoconf.c +++ b/sys/arch/hppa/hppa/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.33 2003/06/02 23:27:46 millert Exp $ */ +/* $OpenBSD: autoconf.c,v 1.34 2003/07/30 21:18:09 mickey Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -134,6 +134,8 @@ heartbeat(v) static u_int hbcnt = 0, ocp_total, ocp_idle; int toggle, cp_mask, cp_total; + timeout_add(&heartbeat_tmo, hz / 16); + cp_total = cp_time[CP_USER] + cp_time[CP_NICE] + cp_time[CP_SYS] + cp_time[CP_INTR] + cp_time[CP_IDLE]; if (!cp_total) @@ -150,10 +152,9 @@ heartbeat(v) * _| |_| |_,_,_,_ * 0 1 2 3 4 6 7 */ - if (hbcnt++ < 4) + if (hbcnt++ < 8 && hbcnt & 1) toggle = PALED_HEARTBEAT; - timeout_add(&heartbeat_tmo, hz / 8); - hbcnt &= 7; + hbcnt &= 15; ledctl(cp_mask, (~cp_mask & 0xf0) | PALED_NETRCV | PALED_NETSND | PALED_DISK, toggle); |