PERFORCE change 95074 for review
John Baldwin
jhb at FreeBSD.org
Wed Apr 12 18:59:48 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=95074
Change 95074 by jhb at jhb_slimer on 2006/04/12 18:59:16
Don't adjust the thread's priority in msleep (and tsleep) if the
priority value is 0.
Affected files ...
.. //depot/projects/smpng/sys/kern/kern_synch.c#100 edit
Differences ...
==== //depot/projects/smpng/sys/kern/kern_synch.c#100 (text+ko) ====
@@ -195,9 +195,11 @@
/*
* Adjust this thread's priority.
*/
- mtx_lock_spin(&sched_lock);
- sched_prio(td, priority & PRIMASK);
- mtx_unlock_spin(&sched_lock);
+ if (priority & PRIMASK != 0) {
+ mtx_lock_spin(&sched_lock);
+ sched_prio(td, priority & PRIMASK);
+ mtx_unlock_spin(&sched_lock);
+ }
if (timo && catch)
rval = sleepq_timedwait_sig(ident);
More information about the p4-projects
mailing list