arm64: barriers: allow dsb macro to take option parameter
authorWill Deacon <will.deacon@arm.com>
Thu, 6 Feb 2014 11:30:48 +0000 (11:30 +0000)
committerMark Brown <broonie@linaro.org>
Wed, 21 May 2014 14:58:22 +0000 (15:58 +0100)
commita268cb19ce04497bd27da6e8e8fd02ebc5d4c347
tree4121a1eb8e2e2aa9a872ac0a67bd0df794e09642
parent007f5253a50c554755465c7e586947b8baf6f18a
arm64: barriers: allow dsb macro to take option parameter

The dsb instruction takes an option specifying both the target access
types and shareability domain.

This patch allows such an option to be passed to the dsb macro,
resulting in potentially more efficient code. Currently the option is
ignored until all callers are updated (unlike ARM, the option is
mandated by the assembler).

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 4a7ac12eedd190cdf071e61145defa73df1675c0)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/include/asm/barrier.h