Date: Mon, 14 Aug 2006 21:18:55 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 103911 for review Message-ID: <200608142118.k7ELIta6038110@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103911 Change 103911 by jhb@jhb_mutex on 2006/08/14 21:18:11 Bah! Affected files ... .. //depot/projects/smpng/sys/modules/crash2/crash2.c#16 edit Differences ... ==== //depot/projects/smpng/sys/modules/crash2/crash2.c#16 (text+ko) ==== @@ -111,13 +111,13 @@ static int barrier; atomic_add_int(&barrier, 1); - while (barrier != NTHREADS) + while (barrier < NTHREADS) cpu_spinwait(); mtx_lock(mtxen[thread % 4]); DELAY(500); atomic_add_int(&barrier, 1); - while (barrier != 2 * NTHREADS) + while (barrier < 2 * NTHREADS) cpu_spinwait(); mtx_lock(mtxen[(thread + 1) % 4]);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608142118.k7ELIta6038110>