Commit 37743487704322e0d5bbf7e003d28c143fcc2a2b
Committed by
David S. Miller
1 parent
34d4accfe0
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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
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 |