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)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 6 Feb 2014 11:39:11 +0000 (11:39 +0000)
commit4a7ac12eedd190cdf071e61145defa73df1675c0
tree54ee67a39763b873ebc894c9a2b48eb91a08f512
parent530b099dfe8499d639e7fbcad28c4199e2a720c7
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>
arch/arm64/include/asm/barrier.h