mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Removed a stale comment and staler code.
This commit is contained in:
parent
79aa4f4704
commit
57518a4e83
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33827
@ -46,7 +46,7 @@
|
||||
* in Germany will I accept domestic beer. This code may or may not work
|
||||
* and I certainly make no claims as to its fitness for *any* purpose.
|
||||
*
|
||||
* $Id: kern_threads.c,v 1.4 1997/11/06 19:29:16 phk Exp $
|
||||
* $Id: kern_threads.c,v 1.5 1997/11/07 08:52:57 phk Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -91,17 +91,10 @@ thr_sleep(struct proc *p, struct thr_sleep_args *uap) {
|
||||
p->p_wakeup = 0;
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
/*
|
||||
* XXX this is not as careful as settimeofday() about minimising
|
||||
* interrupt latency. The hzto() interface is inconvenient as usual.
|
||||
*/
|
||||
s = splclock();
|
||||
timevaladd(&atv, &time);
|
||||
timo = hzto(&atv);
|
||||
splx(s);
|
||||
if (timo == 0)
|
||||
timo = 1;
|
||||
}
|
||||
|
||||
p->p_retval[0] = 0;
|
||||
|
@ -13,7 +13,7 @@
|
||||
* bad that happens because of using this software isn't the responsibility
|
||||
* of the author. This software is distributed AS-IS.
|
||||
*
|
||||
* $Id: vfs_aio.c,v 1.22 1998/02/06 12:13:29 eivind Exp $
|
||||
* $Id: vfs_aio.c,v 1.23 1998/02/09 06:09:28 eivind Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1483,16 +1483,10 @@ aio_suspend(struct proc *p, struct aio_suspend_args *uap)
|
||||
TIMESPEC_TO_TIMEVAL(&atv, &ts)
|
||||
if (itimerfix(&atv))
|
||||
return (EINVAL);
|
||||
/*
|
||||
* XXX this is not as careful as settimeofday() about minimising
|
||||
* interrupt latency. The hzto() interface is inconvenient as usual.
|
||||
*/
|
||||
s = splclock();
|
||||
timevaladd(&atv, &time);
|
||||
timo = hzto(&atv);
|
||||
splx(s);
|
||||
if (timo == 0)
|
||||
timo = 1;
|
||||
}
|
||||
|
||||
ki = p->p_aioinfo;
|
||||
|
Loading…
Reference in New Issue
Block a user