diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-08-14 22:38:05 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-14 22:38:05 -0400 |
commit | 916e97834e023f89b31f796b53cc9c7956e7fe17 (patch) | |
tree | 60655c29dd9c78ee920a7dd73a1f7dff3dd85cce /arch/sh/mm | |
parent | 7fbb2d3bdd33e58f54e360df0723d754f0b66153 (diff) |
sh: Kill off unused flush_icache_user_range().
We use flush_cache_page() outright in copy_to_user_page(), and nothing
else needs it, so just kill it off. SH-5 still defines its own version,
but that too will go away in the same fashion once it converts over.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r-- | arch/sh/mm/cache-sh4.c | 14 | ||||
-rw-r--r-- | arch/sh/mm/cache-sh5.c | 2 |
2 files changed, 1 insertions, 15 deletions
diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c index 4466787a52aa..b5860535e61f 100644 --- a/arch/sh/mm/cache-sh4.c +++ b/arch/sh/mm/cache-sh4.c | |||
@@ -401,20 +401,6 @@ void flush_cache_range(struct vm_area_struct *vma, unsigned long start, | |||
401 | } | 401 | } |
402 | } | 402 | } |
403 | 403 | ||
404 | /* | ||
405 | * flush_icache_user_range | ||
406 | * @vma: VMA of the process | ||
407 | * @page: page | ||
408 | * @addr: U0 address | ||
409 | * @len: length of the range (< page size) | ||
410 | */ | ||
411 | void flush_icache_user_range(struct vm_area_struct *vma, | ||
412 | struct page *page, unsigned long addr, int len) | ||
413 | { | ||
414 | flush_cache_page(vma, addr, page_to_pfn(page)); | ||
415 | mb(); | ||
416 | } | ||
417 | |||
418 | /** | 404 | /** |
419 | * __flush_cache_4096 | 405 | * __flush_cache_4096 |
420 | * | 406 | * |
diff --git a/arch/sh/mm/cache-sh5.c b/arch/sh/mm/cache-sh5.c index 576cad04b11b..a50d23caf015 100644 --- a/arch/sh/mm/cache-sh5.c +++ b/arch/sh/mm/cache-sh5.c | |||
@@ -655,7 +655,7 @@ void flush_icache_range(unsigned long start, unsigned long end) | |||
655 | * range following a poke into the program text through the ptrace() call | 655 | * range following a poke into the program text through the ptrace() call |
656 | * from another process (e.g. for BRK instruction insertion). | 656 | * from another process (e.g. for BRK instruction insertion). |
657 | */ | 657 | */ |
658 | void flush_icache_user_range(struct vm_area_struct *vma, | 658 | static void flush_icache_user_range(struct vm_area_struct *vma, |
659 | struct page *page, unsigned long addr, int len) | 659 | struct page *page, unsigned long addr, int len) |
660 | { | 660 | { |
661 | 661 | ||