PERFORCE change 135412 for review
John Baldwin
jhb at FreeBSD.org
Thu Feb 14 12:59:05 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=135412
Change 135412 by jhb at 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);
More information about the p4-projects
mailing list