Fixes gemmi_idle in file idle.c
PATCH 1/1 Fixes gemmi_idle in file idle.c
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.
--- arch/arm/mach-gemini/idle.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-gemini/idle.c +1 -2
@@ -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 (); }
Signature · 1 line
1.9.1
Quoted 6 lines · On Sunday 29 June 2014 22:52:40 Nicholas Krause wrote:
disables the IRQ line in
gemmi_idlebefore callingcpu_do_idle. In addition, according to the Fixme message in this file fixes races that may occur due to not disabling the IRQ before callingcpu_do_idle.Signed-off-by Nicholas Krause <[email protected]>
Have you actually read the comment above the function?
arch/arm/mach-gemini/idle.c static void gemini_idle(void) · line 22
Quoted 13 lines
arch/arm/mach-gemini/idle.c +1
-2@@ -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
Quoted 4 lines · Nicholas Krause
disables the IRQ line in
gemmi_idlebefore callingcpu_do_idle. In addition, according to the Fixme message in this file fixes races that may occur due to not disabling the IRQ before callingcpu_do_idle.
1) the idle method is called with interrupts already disabled.
2) I wonder if you read the comment above the comment you removed, and if so, why it wasn't removed.
3) can you indicate how the hardware problem has been fixed, or give some justification why this change should be accepted.
Signature · 2 lines
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly improving, and getting towards what was expected from it.
Thanks for the good feedback on kernel development , I will delete this file in order to clean up race conditions caused by it.
Cheers Nick
Quoted 15 lines · Russell King - ARM Linux
Quoted 4 lines · Nicholas Krause
disables the IRQ line in
gemmi_idlebefore callingcpu_do_idle. In addition, according to the Fixme message in this file fixes races that may occur due to not disabling the IRQ before callingcpu_do_idle.1) the idle method is called with interrupts already disabled.
2) I wonder if you read the comment above the comment you removed, and if so, why it wasn't removed.
3) can you indicate how the hardware problem has been fixed, or give some justification why this change should be accepted.--
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly improving, and getting towards what was expected from it.