--- zzzz-none-000/linux-4.1.38/arch/mips/mm/c-r4k.c 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/arch/mips/mm/c-r4k.c 2020-11-25 10:06:48.000000000 +0000 @@ -639,10 +639,14 @@ static void r4k_flush_data_cache_page(unsigned long addr) { +#if defined(CONFIG_BCM_KF_DCACHE_SHARED) && defined(CONFIG_BCM_DCACHE_SHARED) + local_r4k_flush_data_cache_page((void *) addr); +#else if (in_atomic()) local_r4k_flush_data_cache_page((void *)addr); else r4k_on_each_cpu(local_r4k_flush_data_cache_page, (void *) addr); +#endif } struct flush_icache_range_args {