[lkml]   [2005]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 1/12]: MUTEX: Implement mutexes
    On Sad, 2005-12-17 at 20:29 -0500, Nicolas Pitre wrote:
    > out there. The other 99% of actual ARM processors in the field only
    > have the atomic swap (swp) instruction which is insufficient for
    > implementing a counting semaphore (we therefore have to disable
    > interrupts, do the semaphore update and enable interrupts again which is
    > much slower than a swp-based mutex).

    There are other approaches depending on how your CPU behaves and the
    probability of splitting an "atomic operation" including checking the
    return address range in the IRQ handler and ifs its in the 'atomic ops'
    page jumping to a recovery function. If you are sneaky in how you lay
    out your virtual address space it becomes a single unconditional or on
    kernel->kernel interrupt returns.

    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-12-18 14:40    [W:0.024 / U:2.388 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site