[PATCH][v3] powerpc: move epapr paravirt init of power_save to an initcall
Scott Wood
scottwood at freescale.com
Thu May 1 09:24:09 EST 2014
On Wed, 2014-04-30 at 18:23 -0500, Stuart Yoder wrote:
> From: Stuart Yoder <stuart.yoder at freescale.com>
>
> some restructuring of epapr paravirt init resulted in
> ppc_md.power_save being set, and then overwritten to
> NULL during machine_init. This patch splits the
> initialization of ppc_md.power_save out into a postcore
> init call.
>
> Signed-off-by: Stuart Yoder <stuart.yoder at freescale.com>
> ---
> -v3
> -changed approach slightly, set flag in the dt scanning
> code and just look at that flag in the initcall
>
>
> arch/powerpc/kernel/epapr_paravirt.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/kernel/epapr_paravirt.c b/arch/powerpc/kernel/epapr_paravirt.c
> index 7898be9..6596cd7 100644
> --- a/arch/powerpc/kernel/epapr_paravirt.c
> +++ b/arch/powerpc/kernel/epapr_paravirt.c
> @@ -30,6 +30,7 @@ extern u32 epapr_ev_idle_start[];
> #endif
>
> bool epapr_paravirt_enabled;
> +bool epapr_has_idle;
static
-Scott
More information about the Linuxppc-dev
mailing list