diff options
author | jake <jake@FreeBSD.org> | 2000-11-27 22:52:31 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2000-11-27 22:52:31 +0000 |
commit | 9326f655fcd4caf90e69a0e773ed128fe10e8996 (patch) | |
tree | 81303d866925ac21a87e7c5eb42a74a8327dafc2 /sys/compat | |
parent | 79bed97f3ef08feeef87c05d8ecd1eb1a6c486e4 (diff) | |
download | FreeBSD-src-9326f655fcd4caf90e69a0e773ed128fe10e8996.zip FreeBSD-src-9326f655fcd4caf90e69a0e773ed128fe10e8996.tar.gz |
Use callout_reset instead of timeout(9). Most callouts are statically
allocated, 2 have been added to struct proc for setitimer and sleep.
Reviewed by: jhb, jlemon
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 1afffe0..f764342 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -115,9 +115,9 @@ linux_alarm(struct proc *p, struct linux_alarm_args *args) old_it = p->p_realtimer; getmicrouptime(&tv); if (timevalisset(&old_it.it_value)) - untimeout(realitexpire, (caddr_t)p, p->p_ithandle); + callout_stop(&p->p_itcallout); if (it.it_value.tv_sec != 0) { - p->p_ithandle = timeout(realitexpire, (caddr_t)p, tvtohz(&it.it_value)); + callout_reset(&p->p_itcallout, tvtohz(&it.it_value), realitexpire, p); timevaladd(&it.it_value, &tv); } p->p_realtimer = it; |