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

Kyle McMartin kyle at mcmartin.ca
Sat Jun 13 03:40:13 EST 2009


On Fri, Jun 12, 2009 at 09:04:52AM -0500, Kumar Gala wrote:
>> 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 <paulus at samba.org>
>> ---
>> 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


More information about the Linuxppc-dev mailing list