Skip to content

Commit

Permalink
m68k: modify cache push and clear code for ColdFire with MMU enable
Browse files Browse the repository at this point in the history
The cache push and clear code only need to flush the branch cache on
the write-through cache setup of the ColdFire V4e with MMU enabled.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Matt Waddel <mwaddel@yahoo.com>
Acked-by: Kurt Mahan <kmahan@xmission.com>
  • Loading branch information
Greg Ungerer committed Dec 30, 2011
1 parent 8b38f3c commit 6061019
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/m68k/mm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ static inline void pushcl040(unsigned long paddr)

void cache_clear (unsigned long paddr, int len)
{
if (CPU_IS_040_OR_060) {
if (CPU_IS_COLDFIRE) {
flush_cf_bcache(0, DCACHE_MAX_ADDR);
} else if (CPU_IS_040_OR_060) {
int tmp;

/*
Expand Down Expand Up @@ -250,7 +252,9 @@ EXPORT_SYMBOL(cache_clear);

void cache_push (unsigned long paddr, int len)
{
if (CPU_IS_040_OR_060) {
if (CPU_IS_COLDFIRE) {
flush_cf_bcache(0, DCACHE_MAX_ADDR);
} else if (CPU_IS_040_OR_060) {
int tmp = PAGE_SIZE;

/*
Expand Down

0 comments on commit 6061019

Please sign in to comment.