.. | .. |
---|
20 | 20 | #include <asm/cpu-features.h> |
---|
21 | 21 | #include <asm/cpu-type.h> |
---|
22 | 22 | #include <asm/page.h> |
---|
23 | | -#include <asm/pgtable.h> |
---|
24 | 23 | #include <asm/r4kcache.h> |
---|
25 | 24 | #include <asm/traps.h> |
---|
26 | 25 | #include <asm/mmu_context.h> |
---|
.. | .. |
---|
124 | 123 | static void octeon_flush_icache_range(unsigned long start, unsigned long end) |
---|
125 | 124 | { |
---|
126 | 125 | octeon_flush_icache_all_cores(NULL); |
---|
127 | | -} |
---|
128 | | - |
---|
129 | | - |
---|
130 | | -/** |
---|
131 | | - * Flush the icache for a trampoline. These are used for interrupt |
---|
132 | | - * and exception hooking. |
---|
133 | | - * |
---|
134 | | - * @addr: Address to flush |
---|
135 | | - */ |
---|
136 | | -static void octeon_flush_cache_sigtramp(unsigned long addr) |
---|
137 | | -{ |
---|
138 | | - struct vm_area_struct *vma; |
---|
139 | | - |
---|
140 | | - down_read(¤t->mm->mmap_sem); |
---|
141 | | - vma = find_vma(current->mm, addr); |
---|
142 | | - octeon_flush_icache_all_cores(vma); |
---|
143 | | - up_read(¤t->mm->mmap_sem); |
---|
144 | 126 | } |
---|
145 | 127 | |
---|
146 | 128 | |
---|
.. | .. |
---|
254 | 236 | c->dcache.sets = dcache_size / (c->dcache.linesz * c->dcache.ways); |
---|
255 | 237 | |
---|
256 | 238 | if (smp_processor_id() == 0) { |
---|
257 | | - pr_notice("Primary instruction cache %ldkB, %s, %d way, " |
---|
258 | | - "%d sets, linesize %d bytes.\n", |
---|
259 | | - icache_size >> 10, |
---|
260 | | - cpu_has_vtag_icache ? |
---|
| 239 | + pr_info("Primary instruction cache %ldkB, %s, %d way, " |
---|
| 240 | + "%d sets, linesize %d bytes.\n", |
---|
| 241 | + icache_size >> 10, |
---|
| 242 | + cpu_has_vtag_icache ? |
---|
261 | 243 | "virtually tagged" : "physically tagged", |
---|
262 | | - c->icache.ways, c->icache.sets, c->icache.linesz); |
---|
| 244 | + c->icache.ways, c->icache.sets, c->icache.linesz); |
---|
263 | 245 | |
---|
264 | | - pr_notice("Primary data cache %ldkB, %d-way, %d sets, " |
---|
265 | | - "linesize %d bytes.\n", |
---|
266 | | - dcache_size >> 10, c->dcache.ways, |
---|
267 | | - c->dcache.sets, c->dcache.linesz); |
---|
| 246 | + pr_info("Primary data cache %ldkB, %d-way, %d sets, " |
---|
| 247 | + "linesize %d bytes.\n", |
---|
| 248 | + dcache_size >> 10, c->dcache.ways, |
---|
| 249 | + c->dcache.sets, c->dcache.linesz); |
---|
268 | 250 | } |
---|
269 | 251 | } |
---|
270 | 252 | |
---|
.. | .. |
---|
289 | 271 | flush_cache_mm = octeon_flush_cache_mm; |
---|
290 | 272 | flush_cache_page = octeon_flush_cache_page; |
---|
291 | 273 | flush_cache_range = octeon_flush_cache_range; |
---|
292 | | - flush_cache_sigtramp = octeon_flush_cache_sigtramp; |
---|
293 | 274 | flush_icache_all = octeon_flush_icache_all; |
---|
294 | 275 | flush_data_cache_page = octeon_flush_data_cache_page; |
---|
295 | 276 | flush_icache_range = octeon_flush_icache_range; |
---|