android_kernel_xiaomi_sm8350/arch/parisc/kernel
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
..
syscalls
.gitignore
alternative.c
asm-offsets.c
audit.c
cache.c
compat_audit.c
drivers.c
entry.S parisc/entry: fix trace test in syscall exit path 2021-11-21 13:38:50 +01:00
firmware.c
ftrace.c
hardware.c
head.S
hpmc.S
inventory.c
irq.c
jump_label.c
kexec_file.c
kexec.c
kgdb.c
kprobes.c
Makefile
module.c module/ftrace: handle patchable-function-entry 2022-02-23 11:59:56 +01:00
pa7300lc.c
pacache.S
parisc_ksyms.c
patch.c parisc: Fix patch code locking and flushing 2022-04-15 14:18:36 +02:00
pci-dma.c
pci.c
pdc_chassis.c
pdc_cons.c
pdt.c
perf_asm.S
perf_images.h
perf.c
process.c
processor.c
ptrace.c
real2.S
relocate_kernel.S
setup.c
signal32.c
signal32.h
signal.c
smp.c parisc/kgdb: add kgdb_roundup() to make kgdb work with idle polling 2021-11-17 09:48:33 +01:00
stacktrace.c
sys_parisc32.c
sys_parisc.c
syscall.S parisc: Correct completer in lws start 2021-12-29 12:23:36 +01:00
time.c parisc: Mark cr16 CPU clocksource unstable on all SMP machines 2021-12-08 09:01:14 +01:00
topology.c
traps.c parisc: Avoid calling faulthandler_disabled() twice 2022-01-27 09:19:47 +01:00
unaligned.c parisc/unaligned: Fix ldw() and stw() unalignment handlers 2022-03-02 11:41:01 +01:00
unwind.c
vmlinux.lds.S Revert "parisc: Fix backtrace to always include init funtion names" 2021-12-01 09:23:28 +01:00