Since sched_pin() and sched_unpin() are already inlined, don't manually

inline in rmlocks.
This commit is contained in:
Robert Watson 2009-05-29 14:20:10 +00:00
parent a571ad41ae
commit 82b7a39cb3

View File

@ -327,7 +327,7 @@ _rm_rlock(struct rmlock *rm, struct rm_priotracker *tracker)
rm_tracker_add(pc, tracker);
td->td_pinned++; /* sched_pin(); */
sched_pin();
compiler_memory_barrier();
@ -387,7 +387,7 @@ _rm_runlock(struct rmlock *rm, struct rm_priotracker *tracker)
pc = cpuid_to_pcpu[td->td_oncpu]; /* pcpu_find(td->td_oncpu); */
rm_tracker_remove(pc, tracker);
td->td_critnest--;
td->td_pinned--; /* sched_unpin(); */
sched_unpin();
if (0 == (td->td_owepreempt | tracker->rmp_flags))
return;