zero out switchtime.tv_sec. This fixes a fairly serious problem where
processes were being charged for time when the system was idle.
This commit is contained in:
parent
e77a756d21
commit
6ebc0f3f32
@ -1,4 +1,4 @@
|
||||
/* $Id: swtch.s,v 1.7 1998/12/02 10:24:56 dfr Exp $ */
|
||||
/* $Id: swtch.s,v 1.8 1999/02/28 10:53:28 bde Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.47 1998/03/22 07:26:32 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
@ -95,6 +95,7 @@ IMPORT(Lev1map, 8)
|
||||
LEAF(idle, 0)
|
||||
br pv, Lidle1
|
||||
Lidle1: LDGP(pv)
|
||||
stq zero, switchtime /* zero switchtime.tv_sec */
|
||||
stq zero, curproc /* curproc <- NULL for stats */
|
||||
mov zero, a0 /* enable all interrupts */
|
||||
call_pal PAL_OSF1_swpipl
|
||||
|
Loading…
x
Reference in New Issue
Block a user