Skip to content

Commit

Permalink
powerpc/64: Avoid isync in flush_dcache_range()
Browse files Browse the repository at this point in the history
As per ISA an isync is only needed on instruction cache block
invalidate. Remove the same from dcache invalidate.

Signed-off-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
kvaneesh authored and mpe committed Mar 27, 2020
1 parent 968339f commit 233ba54
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/powerpc/include/asm/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,13 @@ static inline void flush_dcache_range(unsigned long start, unsigned long stop)
unsigned long size = stop - (unsigned long)addr + (bytes - 1);
unsigned long i;

if (IS_ENABLED(CONFIG_PPC64)) {
if (IS_ENABLED(CONFIG_PPC64))
mb(); /* sync */
isync();
}

for (i = 0; i < size >> shift; i++, addr += bytes)
dcbf(addr);
mb(); /* sync */

if (IS_ENABLED(CONFIG_PPC64))
isync();
}

/*
Expand Down

0 comments on commit 233ba54

Please sign in to comment.