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

Re: [RFT] [SPARC] Emulate cmpxchg like parisc



From: Martin Habets <errandir_news@mph.eclipse.co.uk>
Date: Sat, 26 May 2007 20:39:09 +0100

> LOL, that was my initial approach until I saw Kyle's code.
> Here's the patch I was preparing for that:

Even better would be to test if the platform has a real CMPXCHG
instruction since sparc32 is not the only platform with this issue.

We can add a KCONFIG variable for that, and not set it on
sparc32 et al.

Alternatively we can have a KCONFIG variable with reversed
logic, like "EMULATED_CMPXCHG" which only the atomically
challenged platforms need to set.



Reply to: