hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/mips/mm/c-octeon.c
....@@ -20,7 +20,6 @@
2020 #include <asm/cpu-features.h>
2121 #include <asm/cpu-type.h>
2222 #include <asm/page.h>
23
-#include <asm/pgtable.h>
2423 #include <asm/r4kcache.h>
2524 #include <asm/traps.h>
2625 #include <asm/mmu_context.h>
....@@ -124,23 +123,6 @@
124123 static void octeon_flush_icache_range(unsigned long start, unsigned long end)
125124 {
126125 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(&current->mm->mmap_sem);
141
- vma = find_vma(current->mm, addr);
142
- octeon_flush_icache_all_cores(vma);
143
- up_read(&current->mm->mmap_sem);
144126 }
145127
146128
....@@ -254,17 +236,17 @@
254236 c->dcache.sets = dcache_size / (c->dcache.linesz * c->dcache.ways);
255237
256238 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 ?
261243 "virtually tagged" : "physically tagged",
262
- c->icache.ways, c->icache.sets, c->icache.linesz);
244
+ c->icache.ways, c->icache.sets, c->icache.linesz);
263245
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);
268250 }
269251 }
270252
....@@ -289,7 +271,6 @@
289271 flush_cache_mm = octeon_flush_cache_mm;
290272 flush_cache_page = octeon_flush_cache_page;
291273 flush_cache_range = octeon_flush_cache_range;
292
- flush_cache_sigtramp = octeon_flush_cache_sigtramp;
293274 flush_icache_all = octeon_flush_icache_all;
294275 flush_data_cache_page = octeon_flush_data_cache_page;
295276 flush_icache_range = octeon_flush_icache_range;