linux/arch/tile/include
Chris Metcalf 627ae54854 tile: use READ_ONCE() in arch_spin_is_locked()
This avoid potential issues if callers were to loop on these
routines without some kind of memory barrier.  Currently there
are no such users in-tree, but it seems better safe than sorry.

Also, in the tilepro case we read "current" before "next",
which gives us a slightly better guarantee that the lock was
actually unlocked at least momentarily if we return claiming
that it is not locked.  None of the callers actually rely on
this behavior, as far as I know, however.

Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
2015-04-28 22:43:16 -04:00
..
arch tile: <arch/> header updates from upstream 2013-09-16 15:47:26 -04:00
asm tile: use READ_ONCE() in arch_spin_is_locked() 2015-04-28 22:43:16 -04:00
gxio ptp: tilegx: convert to the 64 bit get/set time methods. 2015-03-31 12:01:18 -04:00
hv tile: nohz: warn if nohz_full uses hypervisor shared cores 2015-04-17 14:01:41 -04:00
uapi tile: default to little endian on older toolchains 2015-01-13 10:13:30 -05:00