diff options
Diffstat (limited to 'arch/sparc64/mm')
-rw-r--r-- | arch/sparc64/mm/init.c | 5 | ||||
-rw-r--r-- | arch/sparc64/mm/tlb.c | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index 466fd6cffac9..f37078d96407 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include <asm/prom.h> | 46 | #include <asm/prom.h> |
47 | #include <asm/sstate.h> | 47 | #include <asm/sstate.h> |
48 | #include <asm/mdesc.h> | 48 | #include <asm/mdesc.h> |
49 | #include <asm/cpudata.h> | ||
49 | 50 | ||
50 | #define MAX_PHYS_ADDRESS (1UL << 42UL) | 51 | #define MAX_PHYS_ADDRESS (1UL << 42UL) |
51 | #define KPTE_BITMAP_CHUNK_SZ (256UL * 1024UL * 1024UL) | 52 | #define KPTE_BITMAP_CHUNK_SZ (256UL * 1024UL * 1024UL) |
@@ -1273,10 +1274,6 @@ void __cpuinit sun4v_ktsb_register(void) | |||
1273 | 1274 | ||
1274 | /* paging_init() sets up the page tables */ | 1275 | /* paging_init() sets up the page tables */ |
1275 | 1276 | ||
1276 | extern void cheetah_ecache_flush_init(void); | ||
1277 | extern void sun4v_patch_tlb_handlers(void); | ||
1278 | |||
1279 | extern void cpu_probe(void); | ||
1280 | extern void central_probe(void); | 1277 | extern void central_probe(void); |
1281 | 1278 | ||
1282 | static unsigned long last_valid_pfn; | 1279 | static unsigned long last_valid_pfn; |
diff --git a/arch/sparc64/mm/tlb.c b/arch/sparc64/mm/tlb.c index 3f10fc921b00..a0f000b293de 100644 --- a/arch/sparc64/mm/tlb.c +++ b/arch/sparc64/mm/tlb.c | |||
@@ -23,10 +23,11 @@ DEFINE_PER_CPU(struct mmu_gather, mmu_gathers) = { 0, }; | |||
23 | 23 | ||
24 | void flush_tlb_pending(void) | 24 | void flush_tlb_pending(void) |
25 | { | 25 | { |
26 | struct mmu_gather *mp = &__get_cpu_var(mmu_gathers); | 26 | struct mmu_gather *mp; |
27 | 27 | ||
28 | preempt_disable(); | 28 | preempt_disable(); |
29 | 29 | ||
30 | mp = &__get_cpu_var(mmu_gathers); | ||
30 | if (mp->tlb_nr) { | 31 | if (mp->tlb_nr) { |
31 | flush_tsb_user(mp); | 32 | flush_tsb_user(mp); |
32 | 33 | ||