Andrea Arcangeli wrote:
> > decl %0
> > jz 1f
> >.section offline.preempt
> > call do_reschedule
>
> So you if you do:
>
> sys_xxx {
> spin_lock()
> spin_unlock()
> }
>
> then the spin_unlock for sure jumps always far away out of line and you'll
> see that change in the bench numbers.
No, %0 should contain spinlock_depth + 1 - need_resched.
So it won't jump until all spinlocks are released _and_ need_resched is
set.
-- Jamie
This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:34 EST