microblaze: cache: split flush_cache() function
authorOvidiu Panait <ovpanait@gmail.com>
Tue, 31 May 2022 18:14:28 +0000 (21:14 +0300)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:16:00 +0000 (14:16 +0200)
commit73b8ee62a0a0aa03b789e5299a00cf8e6adf23ac
treec7bf8acce12b00ab18918af4e9d960d6d5f2be4b
parent8daf89678e9a8ce4203d2df6c65d9ff17aad785a
microblaze: cache: split flush_cache() function

Factor out icache/dcache components from flush_cache() function. Call the
newly added __flush_icache()/__flush_dcache() functions inside
icache_disable() and dcache_disable(), respectively. There is no need to
flush both caches when disabling a particular cache type.

Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Link: https://lore.kernel.org/r/20220531181435.3473549-7-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
arch/microblaze/cpu/cache.c