No commit message.

On 2017-09-13 16:29, Ralf Ramsauer wrote:
> Signed-off-by: Ralf Ramsauer <[email protected]>
> ---
>  inmates/lib/arm-common/include/psci.h | 1 +
>  inmates/lib/arm-common/psci.c         | 8 ++++++++
>  2 files changed, 9 insertions(+)
> 
> diff --git a/inmates/lib/arm-common/include/psci.h 
> b/inmates/lib/arm-common/include/psci.h
> index b7cf3dab..e3d239fa 100644
> --- a/inmates/lib/arm-common/include/psci.h
> +++ b/inmates/lib/arm-common/include/psci.h
> @@ -38,3 +38,4 @@
>  
>  unsigned int psci_version(void);
>  int psci_cpu_on(unsigned int cpu_id, void (*c_entry)(void *));
> +void __attribute__((noreturn)) psci_cpu_off(void);
> diff --git a/inmates/lib/arm-common/psci.c b/inmates/lib/arm-common/psci.c
> index 306ff037..47c3c335 100644
> --- a/inmates/lib/arm-common/psci.c
> +++ b/inmates/lib/arm-common/psci.c
> @@ -69,3 +69,11 @@ int psci_cpu_on(unsigned int cpu_id, void (*c_entry)(void 
> *))
>  
>       return 0;
>  }
> +
> +void __attribute__((noreturn)) psci_cpu_off(void)
> +{
> +     /* point of no return */
> +     psci_call(PSCI_CPU_OFF, 0, 0, 0);
> +     while (1)
> +             asm volatile("wfi");
> +}
> 

Is this final? I wonder because you are now counting CPUs during stack
setup, and that would explode on cpu-on, cpu-off, cpu-on.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to