From ccb7ab6c3e18598f0f22a10e67c229e2dd8dd71b Mon Sep 17 00:00:00 2001 From: Artur Grabowski <art@cvs.openbsd.org> Date: Tue, 8 Jun 2004 18:06:54 +0000 Subject: No need to update runtime in cpu_switch. It's updated in mi_switch just after the return from cpu_switch. ok deraadt@ miod@ --- sys/arch/sparc/sparc/locore.s | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/sparc/sparc/locore.s b/sys/arch/sparc/sparc/locore.s index 85f079835bb..5dbc64a1ab3 100644 --- a/sys/arch/sparc/sparc/locore.s +++ b/sys/arch/sparc/sparc/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.57 2003/04/29 21:19:25 miod Exp $ */ +/* $OpenBSD: locore.s,v 1.58 2004/06/08 18:06:53 art Exp $ */ /* $NetBSD: locore.s,v 1.73 1997/09/13 20:36:48 pk Exp $ */ /* @@ -4513,7 +4513,6 @@ Lsw_panic_srun: * IT MIGHT BE WORTH SAVING BEFORE ENTERING idle TO AVOID HAVING TO * SAVE LATER WHEN SOMEONE ELSE IS READY ... MUST MEASURE! */ - .globl _C_LABEL(runtime) .globl _C_LABEL(time) ENTRY(cpu_switch) /* @@ -4556,15 +4555,6 @@ ENTRY(cpu_switch) Lsw_scan: nop; nop; nop ! paranoia - /* - * We're about to run a (possibly) new process. Set runtime - * to indicate its start time. - */ - sethi %hi(_C_LABEL(time)), %o0 - ldd [%o0 + %lo(_C_LABEL(time))], %o2 - sethi %hi(_C_LABEL(runtime)), %o0 - std %o2, [%o0 + %lo(_C_LABEL(runtime))] - ld [%g2 + %lo(_C_LABEL(whichqs))], %o3 /* -- cgit v1.2.3