OSDN Git Service

parisc: Avoid calling SMP cache flush functions on cache-less machines
authorHelge Deller <deller@gmx.de>
Sat, 12 Mar 2022 20:03:33 +0000 (21:03 +0100)
committerHelge Deller <deller@gmx.de>
Wed, 16 Mar 2022 21:52:12 +0000 (22:52 +0100)
commit0a575497691486a75bdc3ae551094432b0761a84
treef89b8c14334669e759965382cf3f43005199e978
parenta58e9d0984e8dad53f17ec73ae3c1cc7f8d88151
parisc: Avoid calling SMP cache flush functions on cache-less machines

At least the qemu virtual machine does not provide D- and I-caches,
so skip triggering SMP irqs to flush caches on such machines.

Further optimize the caching code by using static branches and making
some functions static.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/cacheflush.h
arch/parisc/kernel/alternative.c
arch/parisc/kernel/cache.c