From: Will Deacon Date: Fri, 10 May 2013 17:07:19 +0000 (+0100) Subject: ARM: barrier: allow options to be passed to memory barrier instructions X-Git-Tag: v3.12-rc1~128^2^3~1^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ea128065ed20d33bd02ff6dab689f88e38000be;p=pandora-kernel.git ARM: barrier: allow options to be passed to memory barrier instructions On ARMv7, the memory barrier instructions take an optional `option' field which can be used to constrain the effects of a memory barrier based on shareability and access type. This patch allows the caller to pass these options if required, and updates the smp_*() barriers to request inner-shareable barriers, affecting only stores for the _wmb variant. wmb() is also changed to use the -st version of dsb. Reported-by: Albin Tonnerre Reviewed-by: Catalin Marinas Signed-off-by: Will Deacon --- Reading git-diff-tree failed