forked from mirrors/linux
		
	Use linux generic asid/vmid algorithm to implement csky switch_mm function. The algorithm is from arm and it could work with SMP system. It'll help reduce tlb flush for switch_mm in task/vm switch. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Cc: Arnd Bergmann <arnd@arndb.de>
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			245 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			245 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0 */
 | 
						|
// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
 | 
						|
 | 
						|
#ifndef __ASM_CSKY_MMU_H
 | 
						|
#define __ASM_CSKY_MMU_H
 | 
						|
 | 
						|
typedef struct {
 | 
						|
	atomic64_t	asid;
 | 
						|
	void *vdso;
 | 
						|
} mm_context_t;
 | 
						|
 | 
						|
#endif /* __ASM_CSKY_MMU_H */
 |