From: Christophe Leroy Date: Fri, 14 Aug 2020 05:49:29 +0000 (+0000) Subject: powerpc: Remove flush_instruction_cache() on 8xx X-Git-Tag: v5.10-rc1~105^2~171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=76d46a1e2fe2c35f24c07b7cc8a41afbf98b349e;p=thirdparty%2Fkernel%2Flinux.git powerpc: Remove flush_instruction_cache() on 8xx flush_instruction_cache() is never used on 8xx, remove it. Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/245cabd8f291facac8c8c5fd370e361a69e02860.1597384145.git.christophe.leroy@csgroup.eu --- diff --git a/arch/powerpc/mm/nohash/8xx.c b/arch/powerpc/mm/nohash/8xx.c index d2b37146ae6c9..231ca95f9ffb8 100644 --- a/arch/powerpc/mm/nohash/8xx.c +++ b/arch/powerpc/mm/nohash/8xx.c @@ -244,13 +244,6 @@ void set_context(unsigned long id, pgd_t *pgd) mb(); } -void flush_instruction_cache(void) -{ - isync(); - mtspr(SPRN_IC_CST, IDC_INVALL); - isync(); -} - #ifdef CONFIG_PPC_KUEP void __init setup_kuep(bool disabled) {