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 <pau...@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 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev