Thread (3 messages) flat view 3 messages, 3 authors, 2009-06-12

Re: [PATCH RFC] powerpc: Implement atomic64_t for 32-bit processors

From: Kyle McMartin <hidden>
Date: 2009-06-12 17:40:19

On Fri, Jun 12, 2009 at 09:04:52AM -0500, Kumar Gala wrote:
quoted
On UP, all the spinlock manipulation goes away and we simply disable
interrupts around each operation.  In fact gcc eliminates the whole
atomic64_lock variable as well.

Signed-off-by: Paul Mackerras <redacted>
---
Compile-tested only at this stage, which is why it's [RFC].
any reason not to make this lib/asm generic?  Seems like it isn't ppc  
specific.
Indeed... PA-RISC uses these for all atomics, since we have no useful
atomic insns to implement them... I'd be happy to submit a cleanup after
you merge this, if you don't have time to ahead of time.

regards, Kyle
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help