summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-04-21 04:39:36 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-04-21 04:39:36 +0000
commit69e87fee98396ec10e442c4defdf192d9e53f997 (patch)
treec48c59ddc701b5f8aee3c870708fb4c8b5fd7659 /sys/arch/i386
parent15c9f1f18f2762ddbd2ccdb7ffe0f7d14309de8e (diff)
count fpu lazy context switches; deraadt@ ok
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/isa/npx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/i386/isa/npx.c b/sys/arch/i386/isa/npx.c
index 806581f4363..0df6941f654 100644
--- a/sys/arch/i386/isa/npx.c
+++ b/sys/arch/i386/isa/npx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: npx.c,v 1.35 2004/10/21 20:58:07 kettenis Exp $ */
+/* $OpenBSD: npx.c,v 1.36 2005/04/21 04:39:35 mickey Exp $ */
/* $NetBSD: npx.c,v 1.57 1996/05/12 23:12:24 mycroft Exp $ */
#if 0
@@ -698,6 +698,7 @@ npxdna_s87(struct cpu_info *ci)
ci->ci_fpcurproc = p;
p->p_addr->u_pcb.pcb_fpcpu = ci;
splx(s);
+ uvmexp.fpswtch++;
if ((p->p_md.md_flags & MDP_USEDFPU) == 0) {
fldcw(&p->p_addr->u_pcb.pcb_savefpu.sv_87.sv_env.en_cw);