OSDN Git Service

UPSTREAM: arm64: barriers: introduce nops and __nops macros for NOP sequences
authorWill Deacon <will.deacon@arm.com>
Tue, 6 Sep 2016 15:40:23 +0000 (16:40 +0100)
committerSami Tolvanen <samitolvanen@google.com>
Wed, 4 Jan 2017 17:02:08 +0000 (09:02 -0800)
commit12ac5b67a13dabdb6e9cd9c0811bcebe12a23b1c
tree696a605dd5b6fed0196104d1eb3cfe40366a479f
parentc86266edfaa4e39a5f784e1c9ee8ec6ba2803cc1
UPSTREAM: arm64: barriers: introduce nops and __nops macros for NOP sequences

NOP sequences tend to get used for padding out alternative sections
and uarch-specific pipeline flushes in errata workarounds.

This patch adds macros for generating these sequences as both inline
asm blocks, but also as strings suitable for embedding in other asm
blocks directly.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Bug: 31432001
Change-Id: I7f82b677a065ede302a763d39ffcc3fef83f8fbe
(cherry picked from commit f99a250cb6a3b301b101b4c0f5fcb80593bba6dc)
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
arch/arm64/include/asm/assembler.h
arch/arm64/include/asm/barrier.h