Skip to content

Commit

Permalink
MN10300: The SMP_ICACHE_INV_FLUSH_RANGE IPI command does not exist
Browse files Browse the repository at this point in the history
The invalidate-only versions of flush_icache_*range() are trying sending the
SMP_ICACHE_INV_FLUSH_RANGE IPI command in SMP kernels when they should be
sending SMP_ICACHE_INV_RANGE as the former does not exist.

Signed-off-by: David Howells <dhowells@redhat.com>
  • Loading branch information
David Howells committed Mar 14, 2011
1 parent 6fc3443 commit dcca52c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mn10300/mm/cache-inv-icache.c
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ static void flush_icache_page_range(unsigned long start, unsigned long end)

/* invalidate the icache coverage on that region */
mn10300_local_icache_inv_range2(addr + off, size);
smp_cache_call(SMP_ICACHE_INV_FLUSH_RANGE, start, end);
smp_cache_call(SMP_ICACHE_INV_RANGE, start, end);
}

/**
@@ -101,7 +101,7 @@ void flush_icache_range(unsigned long start, unsigned long end)
* directly */
start_page = (start >= 0x80000000UL) ? start : 0x80000000UL;
mn10300_icache_inv_range(start_page, end);
smp_cache_call(SMP_ICACHE_INV_FLUSH_RANGE, start, end);
smp_cache_call(SMP_ICACHE_INV_RANGE, start, end);
if (start_page == start)
goto done;
end = start_page;

0 comments on commit dcca52c

Please sign in to comment.