[PATCH 4/6] ARM: locks: prefetch the destination word for write prior to strex

Will Deacon will.deacon at arm.com
Thu Jul 25 13:48:46 EDT 2013


On Thu, Jul 25, 2013 at 06:45:55PM +0100, Will Deacon wrote:
> On Thu, Jul 25, 2013 at 06:37:48PM +0100, Stephen Boyd wrote:
> > Oh joy. Why is rwlock's lock member marked volatile?
> 
> Yeah, that was the problematic guy. However, I had to fix that anyway in
> this patch because otherwise the definition for prefetchw when
> !ARCH_HAS_PREFETCHW (which expands to __builtin_prefetch(x,1)) will explode.

Just realised you're still looking at v1, which doesn't have any changes to
the rwlocks. I posted v2 here:

  http://lists.infradead.org/pipermail/linux-arm-kernel/2013-July/186411.html

Enjoy.

Will



More information about the linux-arm-kernel mailing list