summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-06-26 16:21:28 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-06-26 16:21:28 +0000
commit6c8d550876217963343c39dbaba074c69ab12558 (patch)
treeb7c687414a34b499f5d2878b7da492ef7a385aad /sys/compat/linux
parent4c0482ef342f9496c447f4f223786be6a6935164 (diff)
Use new timeouts.
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_misc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 4c5a58e46eb..03f07b4357a 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_misc.c,v 1.27 2000/04/12 04:22:40 jasoni Exp $ */
+/* $OpenBSD: linux_misc.c,v 1.28 2000/06/26 16:21:27 art Exp $ */
/* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */
/*
@@ -791,7 +791,8 @@ linux_sys_alarm(p, v, retval)
/*
* Clear any pending timer alarms.
*/
- untimeout(realitexpire, p);
+
+ timeout_del(&p->p_realit_to);
timerclear(&itp->it_interval);
if (timerisset(&itp->it_value) &&
timercmp(&itp->it_value, &time, >))
@@ -825,7 +826,7 @@ linux_sys_alarm(p, v, retval)
if (timerisset(&it.it_value)) {
timeradd(&it.it_value, &time, &it.it_value);
- timeout(realitexpire, p, hzto(&it.it_value));
+ timeout_add(&p->p_realit_to, hzto(&it.it_value));
}
p->p_realtimer = it;
splx(s);