summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>1999-04-16 13:57:38 +0000
committergallatin <gallatin@FreeBSD.org>1999-04-16 13:57:38 +0000
commit6ebc0f3f3281a81ab6804829e4b1c72896ce7f6c (patch)
treeab0bd7aa87fa676b9ba3f461b4fc6876df9765b7
parente77a756d2103b6faa1c4b37136f8dfb2f5ea588f (diff)
downloadFreeBSD-src-6ebc0f3f3281a81ab6804829e4b1c72896ce7f6c.zip
FreeBSD-src-6ebc0f3f3281a81ab6804829e4b1c72896ce7f6c.tar.gz
zero out switchtime.tv_sec. This fixes a fairly serious problem where
processes were being charged for time when the system was idle.
-rw-r--r--sys/alpha/alpha/swtch.s3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/alpha/alpha/swtch.s b/sys/alpha/alpha/swtch.s
index 7cd3192..17d12e9 100644
--- a/sys/alpha/alpha/swtch.s
+++ b/sys/alpha/alpha/swtch.s
@@ -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
OpenPOWER on IntegriCloud