Re: [PATCH 1/12]: MUTEX: Implement mutexes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux