[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <72959333.SxQIV7k7ca@wuerfel>
Date: Mon, 30 Jun 2014 08:43:21 +0200
From: Arnd Bergmann <arnd@...db.de>
To: linux-arm-kernel@...ts.infradead.org
Cc: Nicholas Krause <xerofoify@...il.com>, ulli.kroll@...glemail.com,
linux@....linux.org.uk, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Fixes gemmi_idle in file idle.c
On Sunday 29 June 2014 22:52:40 Nicholas Krause wrote:
> disables the IRQ line in gemmi_idle before calling cpu_do_idle.
> In addition, according to the Fixme message in this file fixes
> races that may occur due to not disabling the IRQ before calling
> cpu_do_idle.
>
> Signed-off-by: Nicholas Krause <xerofoify@...il.com>
Have you actually read the comment above the function?
> diff --git a/arch/arm/mach-gemini/idle.c b/arch/arm/mach-gemini/idle.c
> index ddf8ec9..2880f5a 100644
> --- a/arch/arm/mach-gemini/idle.c
> +++ b/arch/arm/mach-gemini/idle.c
> @@ -17,8 +17,7 @@ static void gemini_idle(void)
> * disabled.
> */
>
> - /* FIXME: Enabling interrupts here is racy! */
> - local_irq_enable();
> + local_irq_disable();
> cpu_do_idle();
> }
This has the same effect as deleting the entire file. Doing that
is probably the right thing now that 8182a34d85698 ("ARM: 7760/1:
cpu_fa526_do_idle: remove WFI") has been merged, but that needs
a better changeset description to explain why it was needed before
and is not needed any more.
Please submit a new patch doing that.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists