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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:26 EST