Date: Tue, 4 Jun 2002 14:53:48 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_mutex.c Message-ID: <200206042153.g54LrmT07436@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2002/06/04 14:53:48 PDT Modified files: sys/kern kern_mutex.c Log: Optimize the adaptive mutex spin a bit. Use a simple while loop with simple reads (and on IA32, a "pause" instruction for each interation of the loop) to spin until either the mutex owner field changes, or the lock owner stops executing. Suggested by: tanimura Tested on: i386 Revision Changes Path 1.100 +4 -1 src/sys/kern/kern_mutex.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206042153.g54LrmT07436>