powerpc/32: define helpers to get L1 cache sizes.
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 14 May 2019 09:05:15 +0000 (09:05 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Jul 2019 16:06:37 +0000 (02:06 +1000)
commitd98fc70fc139b72ae098d24fde42ad70c8ff2f81
treef968d93729af83cf24f7eaa62b91f01d1a11ed65
parent1cfb725fb1899dc6fdc88f8b5354a65e8ad260c6
powerpc/32: define helpers to get L1 cache sizes.

This patch defines C helpers to retrieve the size of
cache blocks and uses them in the cacheflush functions.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/cache.h
arch/powerpc/include/asm/cacheflush.h