diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-08-15 13:15:50 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-15 13:15:50 -0400 |
commit | 8c41cdcaffb09dca8e6ad7d4d8f885e0b86b9002 (patch) | |
tree | bc9f5306d006d55f383fbc88099c10b243bf1575 /arch/sh/mm | |
parent | 94ecd224c940830e2f2724c3860eb7fb74c15d31 (diff) |
sh64: Kill off dead i/d-cache disabled bits.
These will be handled through the shared cache interface instead, and
they are presently undefined anyways.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r-- | arch/sh/mm/cache-sh5.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/sh/mm/cache-sh5.c b/arch/sh/mm/cache-sh5.c index 819e0f9e8dba..d4a445c865d7 100644 --- a/arch/sh/mm/cache-sh5.c +++ b/arch/sh/mm/cache-sh5.c | |||
@@ -25,14 +25,6 @@ extern void __weak sh4__flush_region_init(void); | |||
25 | /* Wired TLB entry for the D-cache */ | 25 | /* Wired TLB entry for the D-cache */ |
26 | static unsigned long long dtlb_cache_slot; | 26 | static unsigned long long dtlb_cache_slot; |
27 | 27 | ||
28 | #ifdef CONFIG_DCACHE_DISABLED | ||
29 | #define sh64_dcache_purge_all() do { } while (0) | ||
30 | #define sh64_dcache_purge_coloured_phy_page(paddr, eaddr) do { } while (0) | ||
31 | #define sh64_dcache_purge_user_range(mm, start, end) do { } while (0) | ||
32 | #define sh64_dcache_purge_phy_page(paddr) do { } while (0) | ||
33 | #define sh64_dcache_purge_virt_page(mm, eaddr) do { } while (0) | ||
34 | #endif | ||
35 | |||
36 | /* | 28 | /* |
37 | * The following group of functions deal with mapping and unmapping a | 29 | * The following group of functions deal with mapping and unmapping a |
38 | * temporary page into a DTLB slot that has been set aside for exclusive | 30 | * temporary page into a DTLB slot that has been set aside for exclusive |
@@ -52,7 +44,6 @@ static inline void sh64_teardown_dtlb_cache_slot(void) | |||
52 | local_irq_enable(); | 44 | local_irq_enable(); |
53 | } | 45 | } |
54 | 46 | ||
55 | #ifndef CONFIG_ICACHE_DISABLED | ||
56 | static inline void sh64_icache_inv_all(void) | 47 | static inline void sh64_icache_inv_all(void) |
57 | { | 48 | { |
58 | unsigned long long addr, flag, data; | 49 | unsigned long long addr, flag, data; |
@@ -237,9 +228,7 @@ static void sh64_icache_inv_current_user_range(unsigned long start, unsigned lon | |||
237 | addr += L1_CACHE_BYTES; | 228 | addr += L1_CACHE_BYTES; |
238 | } | 229 | } |
239 | } | 230 | } |
240 | #endif /* !CONFIG_ICACHE_DISABLED */ | ||
241 | 231 | ||
242 | #ifndef CONFIG_DCACHE_DISABLED | ||
243 | /* Buffer used as the target of alloco instructions to purge data from cache | 232 | /* Buffer used as the target of alloco instructions to purge data from cache |
244 | sets by natural eviction. -- RPC */ | 233 | sets by natural eviction. -- RPC */ |
245 | #define DUMMY_ALLOCO_AREA_SIZE ((L1_CACHE_BYTES << 10) + (1024 * 4)) | 234 | #define DUMMY_ALLOCO_AREA_SIZE ((L1_CACHE_BYTES << 10) + (1024 * 4)) |
@@ -489,7 +478,6 @@ static void sh64_dcache_purge_user_range(struct mm_struct *mm, | |||
489 | sh64_dcache_purge_user_pages(mm, start, end); | 478 | sh64_dcache_purge_user_pages(mm, start, end); |
490 | } | 479 | } |
491 | } | 480 | } |
492 | #endif /* !CONFIG_DCACHE_DISABLED */ | ||
493 | 481 | ||
494 | /* | 482 | /* |
495 | * Invalidate the entire contents of both caches, after writing back to | 483 | * Invalidate the entire contents of both caches, after writing back to |