MX28 poweroff issue

Marek Vasut marex at denx.de
Thu Jul 5 12:23:26 EDT 2012


Dear Shawn Guo,

[...]

> diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
> index 19c95ea..e41edea 100644
> --- a/arch/arm/kernel/process.c
> +++ b/arch/arm/kernel/process.c
> @@ -247,7 +247,8 @@ void machine_shutdown(void)
>  void machine_halt(void)
>  {
>         machine_shutdown();
> -       while (1);
> +       while (1)
> +               msleep(1);

Won't mdelay() be better?

It removes the warning, but can't some other stray interrupt trigger it again?

>  }

Best regards,
Marek Vasut



More information about the linux-arm-kernel mailing list