forked from mirrors/linux
		
	powerpc/mm/radix: Add dummy radix_enabled()
In this patch we add the radix Kconfig and conditional check. radix_enabled() is written to always return 0 here. Once we have all needed radix changes added, we will update this to an mmu_feature check. We need to add this early so that we can get it all build in the early stage. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
		
							parent
							
								
									b0b5e9b130
								
							
						
					
					
						commit
						566ca99af0
					
				
					 3 changed files with 14 additions and 0 deletions
				
			
		| 
						 | 
					@ -19,6 +19,8 @@ struct mmu_psize_def {
 | 
				
			||||||
	unsigned long	sllp;	/* SLB L||LP (exact mask to use in slbmte) */
 | 
						unsigned long	sllp;	/* SLB L||LP (exact mask to use in slbmte) */
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
 | 
					extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define radix_enabled() (0)
 | 
				
			||||||
#endif /* __ASSEMBLY__ */
 | 
					#endif /* __ASSEMBLY__ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* 64-bit classic hash table MMU */
 | 
					/* 64-bit classic hash table MMU */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -204,6 +204,9 @@ static inline void assert_pte_locked(struct mm_struct *mm, unsigned long addr)
 | 
				
			||||||
#  include <asm/mmu-8xx.h>
 | 
					#  include <asm/mmu-8xx.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef radix_enabled
 | 
				
			||||||
 | 
					#define radix_enabled() (0)
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif /* __KERNEL__ */
 | 
					#endif /* __KERNEL__ */
 | 
				
			||||||
#endif /* _ASM_POWERPC_MMU_H_ */
 | 
					#endif /* _ASM_POWERPC_MMU_H_ */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -331,6 +331,15 @@ config PPC_STD_MMU_64
 | 
				
			||||||
	def_bool y
 | 
						def_bool y
 | 
				
			||||||
	depends on PPC_STD_MMU && PPC64
 | 
						depends on PPC_STD_MMU && PPC64
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					config PPC_RADIX_MMU
 | 
				
			||||||
 | 
						bool "Radix MMU Support"
 | 
				
			||||||
 | 
						depends on PPC_BOOK3S_64
 | 
				
			||||||
 | 
						default y
 | 
				
			||||||
 | 
						help
 | 
				
			||||||
 | 
						  Enable support for the Power ISA 3.0 Radix style MMU. Currently this
 | 
				
			||||||
 | 
						  is only implemented by IBM Power9 CPUs, if you don't have one of them
 | 
				
			||||||
 | 
						  you can probably disable this.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
config PPC_MMU_NOHASH
 | 
					config PPC_MMU_NOHASH
 | 
				
			||||||
	def_bool y
 | 
						def_bool y
 | 
				
			||||||
	depends on !PPC_STD_MMU
 | 
						depends on !PPC_STD_MMU
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue