Re: [PATCH] xen/arm: introduce xen_early_init, use PSCI on xen

From: Stefano Stabellini
Date: Thu Apr 18 2013 - 11:45:23 EST


On Thu, 18 Apr 2013, Stefano Stabellini wrote:
> diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c
> index b002822..3006de4 100644
> --- a/arch/arm/xen/enlighten.c
> +++ b/arch/arm/xen/enlighten.c
> @@ -176,11 +178,36 @@ static int __init xen_secondary_init(unsigned int cpu)
> return 0;
> }
>
> +static bool __init xen_smp_init(void)
> +{
> +#ifdef CONFIG_SMP
> + /* If we are running on Xen, use PSCI if available.
> + * In any case do not try to use the native smp_ops. */
> + if (psci_smp_available())
> + smp_set_ops(&psci_smp_ops);
> + return true;
> +#endif
> +}

Small mistake here: ifndef CONFIG_SMP, xen_smp_init won't have a return
value.
I'll fix and resend.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/