forked from mirrors/linux
		
	 ea4654e088
			
		
	
	
		ea4654e088
		
	
	
	
	
		
			
			Step 4/10 of the namespace unification of CPU mitigations related Kconfig options. [ mingo: Converted new uses that got added since the series was posted. ] Suggested-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Breno Leitao <leitao@debian.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Josh Poimboeuf <jpoimboe@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: https://lore.kernel.org/r/20231121160740.1249350-5-leitao@debian.org
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			251 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			251 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0
 | |
| #ifndef _INCLUDE_PTI_H
 | |
| #define _INCLUDE_PTI_H
 | |
| 
 | |
| #ifdef CONFIG_MITIGATION_PAGE_TABLE_ISOLATION
 | |
| #include <asm/pti.h>
 | |
| #else
 | |
| static inline void pti_init(void) { }
 | |
| static inline void pti_finalize(void) { }
 | |
| #endif
 | |
| 
 | |
| #endif
 |