 90f08e399d
			
		
	
	
	90f08e399d
	
	
	
		
			
			Rework the sparc mmu_gather usage to conform to the new world order :-) Sparc mmu_gather does two things: - tracks vaddrs to unhash - tracks pages to free Split these two things like powerpc has done and keep the vaddrs in per-cpu data structures and flush them on context switch. The remaining bits can then use the generic mmu_gather. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Acked-by: David Miller <davem@davemloft.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Jeff Dike <jdike@addtoit.com> Cc: Richard Weinberger <richard@nod.at> Cc: Tony Luck <tony.luck@intel.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Hugh Dickins <hughd@google.com> Cc: Mel Gorman <mel@csn.ul.ie> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Nick Piggin <npiggin@kernel.dk> Cc: Namhyung Kim <namhyung@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			902 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			902 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _SPARC64_TLB_H
 | |
| #define _SPARC64_TLB_H
 | |
| 
 | |
| #include <linux/swap.h>
 | |
| #include <linux/pagemap.h>
 | |
| #include <asm/pgalloc.h>
 | |
| #include <asm/tlbflush.h>
 | |
| #include <asm/mmu_context.h>
 | |
| 
 | |
| #ifdef CONFIG_SMP
 | |
| extern void smp_flush_tlb_pending(struct mm_struct *,
 | |
| 				  unsigned long, unsigned long *);
 | |
| #endif
 | |
| 
 | |
| #ifdef CONFIG_SMP
 | |
| extern void smp_flush_tlb_mm(struct mm_struct *mm);
 | |
| #define do_flush_tlb_mm(mm) smp_flush_tlb_mm(mm)
 | |
| #else
 | |
| #define do_flush_tlb_mm(mm) __flush_tlb_mm(CTX_HWBITS(mm->context), SECONDARY_CONTEXT)
 | |
| #endif
 | |
| 
 | |
| extern void __flush_tlb_pending(unsigned long, unsigned long, unsigned long *);
 | |
| extern void flush_tlb_pending(void);
 | |
| 
 | |
| #define tlb_start_vma(tlb, vma) do { } while (0)
 | |
| #define tlb_end_vma(tlb, vma)	do { } while (0)
 | |
| #define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0)
 | |
| #define tlb_flush(tlb)	flush_tlb_pending()
 | |
| 
 | |
| #include <asm-generic/tlb.h>
 | |
| 
 | |
| #endif /* _SPARC64_TLB_H */
 |