[PATCH v2 2/2] powerpc/mm: Rename hpte_init_lpar() and move the fallback to a header

Stephen Rothwell sfr at canb.auug.org.au
Tue Jul 26 13:47:12 AEST 2016


Hi Michael,

On Tue, 26 Jul 2016 13:38:38 +1000 Michael Ellerman <mpe at ellerman.id.au> wrote:
>
> hpte_init_lpar() is part of the pseries platform, so name it as such.
> 
> Move the fallback implementation for when PSERIES=n into the header,
> dropping the weak implementation. The panic() is now handled by the
> calling code.

Of course, this could have been handled the same way as the native one.

>  	else if (firmware_has_feature(FW_FEATURE_LPAR))
        else if (IS_ENABLED(CONFIG_PPC_PSERIES) && firmware_has_feature(FW_FEATURE_LPAR))
> -		hpte_init_lpar();
> +		hpte_init_pseries();

and no need to modify the header file.
-- 
Cheers,
Stephen Rothwell


More information about the Linuxppc-dev mailing list