Date: Thu, 14 Feb 2008 20:59:03 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 135412 for review Message-ID: <200802142059.m1EKx3Ow033156@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802142059.m1EKx3Ow033156>