[lkml]   [2005]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] Add support for semaphore-like structure with support for asynchronous I/O
Benjamin LaHaise <> wrote:

> What about the use of atomic operations on frv? Are they more lightweight
> than a semaphore, making for a better fastpath?

What do you mean? Atomic ops don't compare to semaphores.

On FRV atomic ops don't disable interrupts; they reserve one of the eight
conditional execution flags at compile time and that flag is cleared by entry
to an exception, thus aborting the write instruction. See:


I could try and improve the fastpath on the semaphores for FRV - and perhaps
should - but I implemented the semaphores before I'd thought of the clever way
to do atomic ops.

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-04-16 13:17    [W:0.043 / U:4.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site