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

Stefano Stabellini stefano.stabellini at eu.citrix.com
Thu Apr 18 11:44:58 EDT 2013


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.



More information about the linux-arm-kernel mailing list