[PATCH 01/11] usb: chipidea: Add power management support

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Oct 14 06:46:12 EDT 2013


On Mon, Oct 14, 2013 at 05:04:21PM +0800, Peter Chen wrote:
> It is for ARM, but for other platforms, it may not.

Wrong.  atomic_read() and atomic_set() are defined the same way and
have the same lack of atomicity across all architectures.  There is
nothing special about these over a standard load/store.  Your code
using this is quite simply broken and founded on false assumptions
about these macros.



More information about the linux-arm-kernel mailing list