[PATCH 3/5] ARM64: kernel: psci: let ACPI probe PSCI version

Hanjun Guo guohanjun at huawei.com
Wed Mar 25 06:35:22 PDT 2015


On 2015/3/25 1:58, Lorenzo Pieralisi wrote:
> PSCI v0.2+ allows the kernel to probe the PSCI firmware version.
>
> This patch replaces the default initialization of PSCI v0.2+
> functions with code that allows probing PSCI firmware version
> and initializes PSCI functions accordingly.
>
> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi at arm.com>
> Cc: Hanjun Guo <hanjun.guo at linaro.org>
> Cc: Sudeep Holla <sudeep.holla at arm.com>
> Cc: Mark Rutland <mark.rutland at arm.com>
> ---

Reviewed-by: Hanjun Guo <hanjun.guo at linaro.org>

Thanks
Hanjun

>  arch/arm64/kernel/psci.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/arch/arm64/kernel/psci.c b/arch/arm64/kernel/psci.c
> index 2caac44..ea18cb5 100644
> --- a/arch/arm64/kernel/psci.c
> +++ b/arch/arm64/kernel/psci.c
> @@ -439,9 +439,7 @@ int __init psci_acpi_init(void)
>  	else
>  		invoke_psci_fn = __invoke_psci_fn_smc;
>  
> -	psci_0_2_set_functions();
> -
> -	return 0;
> +	return psci_probe();
>  }
>  
>  #ifdef CONFIG_SMP





More information about the linux-arm-kernel mailing list