• Andrew Morton's avatar
    [PATCH] preempt spinlock efficiency fix · 157697eb
    Andrew Morton authored
    Patch from: jak@rudolph.ccur.com (Joe Korty)
    
    The new, preemptable spin_lock() spins on an atomic bus-locking read/write
    instead of an ordinary read, as the original spin_lock implementation did.
    Perhaps that is the source of the inefficiency being seen.
    
    Attached sample code compiles but is untested and incomplete (present
    only to illustrate the idea).
    157697eb
sched.c 59.4 KB