From owner-p4-projects@FreeBSD.ORG Thu Feb 14 20:59:04 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B973116A538; Thu, 14 Feb 2008 20:59:04 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C825E16A46D for ; Thu, 14 Feb 2008 20:59:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id CD3B313C4E8 for ; Thu, 14 Feb 2008 20:59:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1EKx3oM033159 for ; Thu, 14 Feb 2008 20:59:03 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1EKx3Ow033156 for perforce@freebsd.org; Thu, 14 Feb 2008 20:59:03 GMT (envelope-from jhb@freebsd.org) Date: Thu, 14 Feb 2008 20:59:03 GMT Message-Id: <200802142059.m1EKx3Ow033156@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 135412 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: Thu, 14 Feb 2008 20:59:05 -0000 http://perforce.freebsd.org/chv.cgi?CH=135412 Change 135412 by jhb@jhb_mutex on 2008/02/14 20:58:59 Bind to CPU 1 as I think we need to be running concurrent with softclock() to pull this off. Affected files ... .. //depot/projects/smpng/sys/modules/crash/crash.c#52 edit Differences ... ==== //depot/projects/smpng/sys/modules/crash/crash.c#52 (text+ko) ==== @@ -92,9 +92,22 @@ static void pause_forever(void) { + struct thread *td; + /* + * Bind to CPU 1 so that softclock can run ok on CPU 0. + */ + td = curthread; + thread_lock(td); + sched_bind(td, 1); + thread_unlock(td); + for (;;) pause("foo", 1); + + thread_lock(td); + sched_unbind(td); + thread_unlock(td); } CRASH_EVENT("pause in an endless loop", pause_forever);