diff options
author | Mark Rutland <mark.rutland@arm.com> | 2023-01-23 14:46:01 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2023-01-24 12:49:43 +0100 |
commit | e4ecbe83fd1a5428d5458de04a3404f1b5444429 (patch) | |
tree | 0e7fafdcb46e5fe7277be82d46bfd55809662652 /drivers/soundwire | |
parent | arm64: insn: Add helpers for BTI (diff) | |
download | linux-e4ecbe83fd1a5428d5458de04a3404f1b5444429.tar.xz linux-e4ecbe83fd1a5428d5458de04a3404f1b5444429.zip |
arm64: patching: Add aarch64_insn_write_literal_u64()
In subsequent patches we'll need to atomically write to a
naturally-aligned 64-bit literal embedded within the kernel text.
Add a helper for this. For consistency with other text patching code we
use copy_to_kernel_nofault(), which is atomic for naturally-aligned
accesses up to 64-bits.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Florent Revest <revest@chromium.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20230123134603.1064407-7-mark.rutland@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'drivers/soundwire')
0 files changed, 0 insertions, 0 deletions