From owner-p4-projects@FreeBSD.ORG Mon Aug 14 21:19:05 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 458F516A4E9; Mon, 14 Aug 2006 21:19:05 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2170D16A4E5 for ; Mon, 14 Aug 2006 21:19:05 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB16243D5C for ; Mon, 14 Aug 2006 21:18:55 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7ELItOU038113 for ; Mon, 14 Aug 2006 21:18:55 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7ELIta6038110 for perforce@freebsd.org; Mon, 14 Aug 2006 21:18:55 GMT (envelope-from jhb@freebsd.org) Date: Mon, 14 Aug 2006 21:18:55 GMT Message-Id: <200608142118.k7ELIta6038110@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Cc: Subject: PERFORCE change 103911 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 21:19:05 -0000 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]);