arm64: mm: Adopt new alternative assembler macros
authorDaniel Thompson <daniel.thompson@linaro.org>
Wed, 22 Jul 2015 11:21:02 +0000 (12:21 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 10:08:40 +0000 (11:08 +0100)
Convert the dynamic patching for ARM64_WORKAROUND_CLEAN_CACHE over to
the newly added alternative assembler macros.

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/cache.S

index bdeb5d38c2dd72c8510c7547b5cb2170f2fc5b33..eb48d5df4a0f7252462bd34b6209f27960d95e93 100644 (file)
@@ -143,7 +143,12 @@ __dma_clean_range:
        dcache_line_size x2, x3
        sub     x3, x2, #1
        bic     x0, x0, x3
-1:     alternative_insn "dc cvac, x0", "dc civac, x0", ARM64_WORKAROUND_CLEAN_CACHE
+1:
+alternative_if_not ARM64_WORKAROUND_CLEAN_CACHE
+       dc      cvac, x0
+alternative_else
+       dc      civac, x0
+alternative_endif
        add     x0, x0, x2
        cmp     x0, x1
        b.lo    1b