cvs commit: src/sys/alpha/include critical.h src/sys/amd64/include
critical.h src/sys/arm/include critical.h src/sys/i386/include
critical.h src/sys/ia64/include critical.h src/sys/kern
kern_switch.c src/sys/powerpc/include critical.h ...
Robert Watson
rwatson at FreeBSD.org
Tue Jul 27 09:41:04 PDT 2004
rwatson 2004-07-27 16:41:01 UTC
FreeBSD src repository
Modified files:
sys/alpha/include critical.h
sys/amd64/include critical.h
sys/arm/include critical.h
sys/i386/include critical.h
sys/ia64/include critical.h
sys/kern kern_switch.c
sys/powerpc/include critical.h
sys/sparc64/include critical.h
Log:
Pass a thread argument into cpu_critical_{enter,exit}() rather than
dereference curthread. It is called only from critical_{enter,exit}(),
which already dereferences curthread. This doesn't seem to affect SMP
performance in my benchmarks, but improves MySQL transaction throughput
by about 1% on UP on my Xeon.
Head nodding: jhb, bmilekic
Revision Changes Path
1.5 +4 -8 src/sys/alpha/include/critical.h
1.8 +7 -6 src/sys/amd64/include/critical.h
1.2 +4 -4 src/sys/arm/include/critical.h
1.8 +6 -6 src/sys/i386/include/critical.h
1.5 +4 -8 src/sys/ia64/include/critical.h
1.74 +2 -2 src/sys/kern/kern_switch.c
1.6 +4 -6 src/sys/powerpc/include/critical.h
1.5 +4 -8 src/sys/sparc64/include/critical.h
More information about the cvs-all
mailing list