[lkml]   [2005]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: SMP syncronization on AMD processors (broken?)
    On Thu, 6 Oct 2005, Linus Torvalds wrote:
    > If you want to notify another CPU that you want the spinlock, then you
    > need to set the "flag" variable _outside_ of the spinlock.
    > Spinlocks are not fair, not by a long shot. They never have been, and they
    > never will. Fairness would be extremely expensive indeed.

    That reminds me: ought cond_resched_lock to be doing something more?

    int cond_resched_lock(spinlock_t *lock)
    int ret = 0;

    if (need_lockbreak(lock)) {
    ret = 1;
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-10-06 17:37    [W:0.020 / U:28.656 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site