New field: p_sleepend; so that settime() can adjust the expected wakeup

time for things like nanosleep.  These sleep in terms of "ticks" and
calculate the elapsed time relative to the expected wakeup time and do
not return good results when the system time is adjusted.
This commit is contained in:
Peter Wemm 1997-06-01 08:49:49 +00:00
parent d013a27b0b
commit 2fd9da78cf
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)proc.h 8.15 (Berkeley) 5/19/95
* $Id: proc.h,v 1.37 1997/05/07 19:41:37 peter Exp $
* $Id: proc.h,v 1.38 1997/05/22 07:24:46 phk Exp $
*/
#ifndef _SYS_PROC_H_
@ -133,6 +133,7 @@ struct proc {
u_quad_t p_uticks; /* Statclock hits in user mode. */
u_quad_t p_sticks; /* Statclock hits in system mode. */
u_quad_t p_iticks; /* Statclock hits processing intr. */
struct timeval *p_sleepend; /* Wake time for nanosleep & friends */
int p_traceflag; /* Kernel trace points. */
struct vnode *p_tracep; /* Trace to vnode. */