[PATCH v1] arm64: alternatives: mark patch_alternative() as `noinstr`

Will Deacon will at kernel.org
Wed Apr 6 04:33:53 PDT 2022


On Tue, 5 Apr 2022 11:47:33 +0100, Joey Gouly wrote:
> The alternatives code must be `noinstr` such that it does not patch itself,
> as the cache invalidation is only performed after all the alternatives have
> been applied.
> 
> Mark patch_alternative() as `noinstr`. Mark branch_insn_requires_update()
> and get_alt_insn() with `__always_inline` since they are both only called
> through patch_alternative().
> 
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: alternatives: mark patch_alternative() as `noinstr`
      https://git.kernel.org/arm64/c/a2c0b0fbe014

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list