aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/cache-sh7705.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-08-21 05:21:07 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-08-21 05:21:07 -0400
commit64a6d72213dd810dd55bd0a503c36150af41c3c3 (patch)
tree81f2f6e66d3a38f5cb7a27f0a85b365b25469fe4 /arch/sh/mm/cache-sh7705.c
parentf26b2a562b46ab186c8383993ab1332673ac4a47 (diff)
sh: Kill off now redundant local irq disabling.
on_each_cpu() takes care of IRQ and preempt handling, the localized handling in each of the called functions can be killed off. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/cache-sh7705.c')
-rw-r--r--arch/sh/mm/cache-sh7705.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/sh/mm/cache-sh7705.c b/arch/sh/mm/cache-sh7705.c
index 6293f57fa888..9dc38660e3de 100644
--- a/arch/sh/mm/cache-sh7705.c
+++ b/arch/sh/mm/cache-sh7705.c
@@ -81,7 +81,6 @@ static void sh7705_flush_icache_range(void *args)
81static void __flush_dcache_page(unsigned long phys) 81static void __flush_dcache_page(unsigned long phys)
82{ 82{
83 unsigned long ways, waysize, addrstart; 83 unsigned long ways, waysize, addrstart;
84 unsigned long flags;
85 84
86 phys |= SH_CACHE_VALID; 85 phys |= SH_CACHE_VALID;
87 86
@@ -98,7 +97,6 @@ static void __flush_dcache_page(unsigned long phys)
98 * potential cache aliasing, therefore the optimisation is probably not 97 * potential cache aliasing, therefore the optimisation is probably not
99 * possible. 98 * possible.
100 */ 99 */
101 local_irq_save(flags);
102 jump_to_uncached(); 100 jump_to_uncached();
103 101
104 ways = current_cpu_data.dcache.ways; 102 ways = current_cpu_data.dcache.ways;
@@ -126,7 +124,6 @@ static void __flush_dcache_page(unsigned long phys)
126 } while (--ways); 124 } while (--ways);
127 125
128 back_to_cached(); 126 back_to_cached();
129 local_irq_restore(flags);
130} 127}
131 128
132/* 129/*
@@ -145,14 +142,9 @@ static void sh7705_flush_dcache_page(void *page)
145 142
146static void sh7705_flush_cache_all(void *args) 143static void sh7705_flush_cache_all(void *args)
147{ 144{
148 unsigned long flags;
149
150 local_irq_save(flags);
151 jump_to_uncached(); 145 jump_to_uncached();
152
153 cache_wback_all(); 146 cache_wback_all();
154 back_to_cached(); 147 back_to_cached();
155 local_irq_restore(flags);
156} 148}
157 149
158/* 150/*