android_kernel_xiaomi_sm8350/arch/parisc
John David Anglin abb1f310e7 parisc: Fix patch code locking and flushing
[ Upstream commit a9fe7fa7d874a536e0540469f314772c054a0323 ]

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 <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-15 14:18:36 +02:00
..
boot
configs
include parisc: Use absolute_pointer() to define PAGE0 2021-09-30 10:09:25 +02:00
kernel parisc: Fix patch code locking and flushing 2022-04-15 14:18:36 +02:00
lib
math-emu parisc: math-emu: Fix fall-through warnings 2021-10-27 09:54:24 +02:00
mm parisc: Drop __init from map_pages declaration 2022-02-23 11:59:54 +01:00
oprofile
defpalo.conf
install.sh parisc: Fix "make install" on newer debian releases 2021-12-08 09:01:13 +01:00
Kconfig
Kconfig.debug
Makefile module/ftrace: handle patchable-function-entry 2022-02-23 11:59:56 +01:00
nm