diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2002-03-26 01:00:31 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2002-03-26 01:00:31 +0000 |
commit | d07fc347fffd520b5773088a7fe99cf55c94e38f (patch) | |
tree | e092a543b7f0d64ae1c0175736672d99a3f7053f /sys/arch/sparc | |
parent | ea7dd64533d76753a2e6f1ad27ad69d462393543 (diff) |
Honor psratio for addupc_task(), as other arches do.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/sparc/trap.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/sparc/sparc/trap.c b/sys/arch/sparc/sparc/trap.c index 7b11d51d082..653ac487b94 100644 --- a/sys/arch/sparc/sparc/trap.c +++ b/sys/arch/sparc/sparc/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.36 2002/03/14 01:26:44 millert Exp $ */ +/* $OpenBSD: trap.c,v 1.37 2002/03/26 01:00:30 miod Exp $ */ /* $NetBSD: trap.c,v 1.58 1997/09/12 08:55:01 pk Exp $ */ /* @@ -237,8 +237,11 @@ userret(p, pc, oticks) /* * If profiling, charge recent system time to the trapped pc. */ - if (p->p_flag & P_PROFIL) - addupc_task(p, pc, (int)(p->p_sticks - oticks)); + if (p->p_flag & P_PROFIL) { + extern int psratio; + + addupc_task(p, pc, (int)(p->p_sticks - oticks) * psratio); + } curpriority = p->p_priority; } |