diff options
author | John David Anglin <[email protected]> | 2022-03-29 18:54:36 +0000 |
---|---|---|
committer | Helge Deller <[email protected]> | 2022-03-29 21:37:13 +0200 |
commit | a9fe7fa7d874a536e0540469f314772c054a0323 (patch) | |
tree | 4f5ad7225e27358ec4ba6ec26bc37aad8c26ebb1 /tools/testing/selftests/bpf/progs/test_prog_array_init.c | |
parent | 1afde47d082c92c4fd3d9b322d944f8d87469834 (diff) |
parisc: Fix patch code locking and flushing
This change fixes the following:
1) The flags variable is not initialized. Always use raw_spin_lock_irqsave
and raw_spin_unlock_irqrestore to serialize patching.
2) flush_kernel_vmap_range is primarily intended for DMA flushes. Since
__patch_text_multiple is often called with interrupts disabled, it is
better to directly call flush_kernel_dcache_range_asm and
flush_kernel_icache_range_asm. This avoids an extra call.
3) The final call to flush_icache_range is unnecessary.
Signed-off-by: John David Anglin <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions