Date: Wed, 29 May 2002 07:29:42 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 12066 for review Message-ID: <200205291429.g4TETgb19707@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=12066 Change 12066 by jhb@jhb_laptop on 2002/05/29 07:28:41 Spin w/o holding sched_lock until mtx_lock changes when we are adaptively spinning. Affected files ... ... //depot/projects/smpng/sys/kern/kern_mutex.c#34 edit Differences ... ==== //depot/projects/smpng/sys/kern/kern_mutex.c#34 (text+ko) ==== @@ -533,9 +533,11 @@ if (m != &Giant && owner->td_kse != NULL && owner->td_kse->ke_oncpu != NOCPU) { mtx_unlock_spin(&sched_lock); + while (mtx_owner(m) == owner) { #ifdef __i386__ - cpu_pause(); + cpu_pause(); #endif + } continue; } #endif /* SMP && ADAPTIVE_MUTEXES */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205291429.g4TETgb19707>