[PATCH v3 12/21] powerpc/mm: Convert early cpu/mmu feature check to use the new helpers

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu Jul 28 07:37:10 AEST 2016


On Thu, 2016-07-28 at 00:18 +1000, Michael Ellerman wrote:
> 
> diff --git a/arch/powerpc/include/asm/book3s/64/mmu.h
> b/arch/powerpc/include/asm/book3s/64/mmu.h
> index 70c995870297..6deda6ecc4f7 100644
> --- a/arch/powerpc/include/asm/book3s/64/mmu.h
> +++ b/arch/powerpc/include/asm/book3s/64/mmu.h
> @@ -116,7 +116,7 @@ extern void hash__early_init_mmu_secondary(void);
>  extern void radix__early_init_mmu_secondary(void);
>  static inline void early_init_mmu_secondary(void)
>  {
> -       if (radix_enabled())
> +       if (__radix_enabled())
>                 return radix__early_init_mmu_secondary();
>         return hash__early_init_mmu_secondary();
>  }

This one can go, no ?

Cheers,
Ben.



More information about the Linuxppc-dev mailing list