Commit 37743487704322e0d5bbf7e003d28c143fcc2a2b

Authored by Sam Ravnborg
Committed by David S. Miller
1 parent 34d4accfe0

sparc32: drop btfixup for check_pgt_cache

It is a noop for srmmu - so use a define as sparc64 does.
And drop all sparc callers - no need to confuse our-self
be calling a noop function.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 4 changed files with 1 additions and 27 deletions Side-by-side Diff

arch/sparc/include/asm/pgalloc_32.h
... ... @@ -21,9 +21,7 @@
21 21 #define pgtable_cache_size (pgt_quicklists.pgtable_cache_sz)
22 22 #define pgd_cache_size (pgt_quicklists.pgd_cache_sz)
23 23  
24   -extern void check_pgt_cache(void);
25   -BTFIXUPDEF_CALL(void, do_check_pgt_cache, int, int)
26   -#define do_check_pgt_cache(low,high) BTFIXUP_CALL(do_check_pgt_cache)(low,high)
  24 +#define check_pgt_cache() do { } while (0)
27 25  
28 26 BTFIXUPDEF_CALL(pgd_t *, get_pgd_fast, void)
29 27 #define get_pgd_fast() BTFIXUP_CALL(get_pgd_fast)()
arch/sparc/kernel/process_32.c
... ... @@ -82,7 +82,6 @@
82 82 cpu_relax();
83 83 }
84 84 schedule_preempt_disabled();
85   - check_pgt_cache();
86 85 }
87 86 }
88 87  
... ... @@ -105,7 +104,6 @@
105 104 cpu_relax();
106 105 }
107 106 schedule_preempt_disabled();
108   - check_pgt_cache();
109 107 }
110 108 }
111 109  
arch/sparc/mm/init_32.c
... ... @@ -286,22 +286,6 @@
286 286 }
287 287  
288 288 /*
289   - * check_pgt_cache
290   - *
291   - * This is called at the end of unmapping of VMA (zap_page_range),
292   - * to rescan the page cache for architecture specific things.
293   - * Most architectures define check_pgt_cache empty.
294   - *
295   - * We simply copy the 2.4 implementation for now.
296   - */
297   -static int pgt_cache_water[2] = { 25, 50 };
298   -
299   -void check_pgt_cache(void)
300   -{
301   - do_check_pgt_cache(pgt_cache_water[0], pgt_cache_water[1]);
302   -}
303   -
304   -/*
305 289 * paging_init() sets up the page tables: We call the MMU specific
306 290 * init routine based upon the Sun model type on the Sparc.
307 291 *
arch/sparc/mm/srmmu.c
... ... @@ -2122,11 +2122,6 @@
2122 2122 srmmu_is_bad();
2123 2123 }
2124 2124  
2125   -/* don't laugh, static pagetables */
2126   -static void srmmu_check_pgt_cache(int low, int high)
2127   -{
2128   -}
2129   -
2130 2125 extern unsigned long spwin_mmu_patchme, fwin_mmu_patchme,
2131 2126 tsetup_mmu_patchme, rtrap_mmu_patchme;
2132 2127  
... ... @@ -2168,7 +2163,6 @@
2168 2163 #ifndef CONFIG_SMP
2169 2164 BTFIXUPSET_CALL(___xchg32, ___xchg32_sun4md, BTFIXUPCALL_SWAPG1G2);
2170 2165 #endif
2171   - BTFIXUPSET_CALL(do_check_pgt_cache, srmmu_check_pgt_cache, BTFIXUPCALL_NOP);
2172 2166  
2173 2167 BTFIXUPSET_CALL(set_pte, srmmu_set_pte, BTFIXUPCALL_SWAPO0O1);
2174 2168