[PATCH 3/8] ARM: SPEAr: use generic cpu idle function for wfi

Viresh Kumar viresh.kumar at linaro.org
Tue May 28 05:55:16 EDT 2013


On 27 May 2013 20:02, Sanjay Singh Rawat <sanjay.rawat at linaro.org> wrote:
> use cpu_do_idle for entering the wfi mode.
>
> Signed-off-by: Sanjay Singh Rawat <sanjay.rawat at linaro.org>
> ---
>  arch/arm/mach-spear/hotplug.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-spear/hotplug.c b/arch/arm/mach-spear/hotplug.c
> index d97749c..6dbd3dc 100644
> --- a/arch/arm/mach-spear/hotplug.c
> +++ b/arch/arm/mach-spear/hotplug.c
> @@ -55,7 +55,8 @@ static inline void cpu_leave_lowpower(void)
>  static inline void spear13xx_do_lowpower(unsigned int cpu, int *spurious)
>  {
>         for (;;) {
> -               wfi();
> +               /* enter WFI mode */
> +               cpu_do_idle();
>
>                 if (pen_release == cpu) {

Acked-by: Viresh Kumar <viresh.kumar at linaro.org>



More information about the linux-arm-kernel mailing list