powerpc: Rewrite 4xx flush_cache_instruction() in C
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 14 Aug 2020 05:56:26 +0000 (05:56 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Sep 2020 01:00:21 +0000 (11:00 +1000)
commitde39b19452e784de5f90ae899851ab29a29bb42c
tree6dd5a6af69cffbad1d70daf5d0fafbda383068ed
parentf663f3312051402d32952c44d156a20c0b854753
powerpc: Rewrite 4xx flush_cache_instruction() in C

Nothing prevents flush_cache_instruction() from being writen in C.

Do it to improve readability and maintainability.

This function is very small and isn't called from assembly,
make it static inline in asm/cacheflush.h

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/93d93fc69b4b3ad3ceba2fc0756333c0c0245bb7.1597384512.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/cacheflush.h
arch/powerpc/kernel/misc_32.S