summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/dev/ite_blank.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-08-20 19:35:19 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-08-20 19:35:19 +0000
commit600584d723f2a9f1bb74bd3e73c06ac616c9d662 (patch)
treef0f8b48c4abd62c6dcdbfb2ff6ccf3999fcc891a /sys/arch/amiga/dev/ite_blank.c
parent3531acac1b9d17c154fc7f86da00912c64602a5d (diff)
Convert to new timeouts; ite tested by jj@
Diffstat (limited to 'sys/arch/amiga/dev/ite_blank.c')
-rw-r--r--sys/arch/amiga/dev/ite_blank.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/amiga/dev/ite_blank.c b/sys/arch/amiga/dev/ite_blank.c
index b1e1a64012b..14606e4b1e2 100644
--- a/sys/arch/amiga/dev/ite_blank.c
+++ b/sys/arch/amiga/dev/ite_blank.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ite_blank.c,v 1.1 1999/11/05 17:15:34 espie Exp $ */
+/* $OpenBSD: ite_blank.c,v 1.2 2001/08/20 19:35:18 miod Exp $ */
/*-
* Copyright (c) 1999 Marc Espie.
*
@@ -79,10 +79,12 @@ ite_restart_blanker(kbd)
/* steal timing trick from pcvt */
if (last_schedule != time.tv_sec) {
+ if (!timeout_initialized(&kbd->blank_timeout))
+ timeout_set(&kbd->blank_timeout, ite_blank, kbd);
if (blank_enabled && !blanked_screen)
- untimeout(ite_blank, kbd);
+ timeout_del(&kbd->blank_timeout);
if (blank_enabled && blank_time)
- timeout(ite_blank, kbd, blank_time * hz);
+ timeout_add(&kbd->blank_timeout, blank_time * hz);
last_schedule = time.tv_sec;
}
ite_unblank(kbd);
@@ -104,7 +106,7 @@ ite_disable_blanker(kbd)
{
int x = spltty();
- untimeout(ite_blank, kbd);
+ timeout_del(&kbd->blank_timeout);
blank_enabled = 0;
ite_unblank(kbd);