diff options
Diffstat (limited to 'arch/sh/mm/cache-sh4.c')
-rw-r--r-- | arch/sh/mm/cache-sh4.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c index 981b04089055..5d0f73a4fbbb 100644 --- a/arch/sh/mm/cache-sh4.c +++ b/arch/sh/mm/cache-sh4.c | |||
@@ -77,16 +77,8 @@ static void __init emit_cache_params(void) | |||
77 | /* | 77 | /* |
78 | * SH-4 has virtually indexed and physically tagged cache. | 78 | * SH-4 has virtually indexed and physically tagged cache. |
79 | */ | 79 | */ |
80 | |||
81 | /* Worst case assumed to be 64k cache, direct-mapped i.e. 4 synonym bits. */ | ||
82 | #define MAX_P3_MUTEXES 16 | ||
83 | |||
84 | struct mutex p3map_mutex[MAX_P3_MUTEXES]; | ||
85 | |||
86 | void __init p3_cache_init(void) | 80 | void __init p3_cache_init(void) |
87 | { | 81 | { |
88 | int i; | ||
89 | |||
90 | compute_alias(¤t_cpu_data.icache); | 82 | compute_alias(¤t_cpu_data.icache); |
91 | compute_alias(¤t_cpu_data.dcache); | 83 | compute_alias(¤t_cpu_data.dcache); |
92 | 84 | ||
@@ -109,9 +101,6 @@ void __init p3_cache_init(void) | |||
109 | 101 | ||
110 | if (ioremap_page_range(P3SEG, P3SEG + (PAGE_SIZE * 4), 0, PAGE_KERNEL)) | 102 | if (ioremap_page_range(P3SEG, P3SEG + (PAGE_SIZE * 4), 0, PAGE_KERNEL)) |
111 | panic("%s failed.", __FUNCTION__); | 103 | panic("%s failed.", __FUNCTION__); |
112 | |||
113 | for (i = 0; i < current_cpu_data.dcache.n_aliases; i++) | ||
114 | mutex_init(&p3map_mutex[i]); | ||
115 | } | 104 | } |
116 | 105 | ||
117 | /* | 106 | /* |