Skip to contentSkip to conversation

Deletes arch/arm/mach-gemini/idle.c

PATCH In review Nicholas Krause 1 participant 2 messages Jul 1, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Deletes arch/arm/mach-gemini/idle.c

This patch deletes the above file in order to remove the function in this file that may cause races. In addition this function is no longer needed due to commit 8182a34d85698 fixing this issue. Therefore gemmi_idle is no longer needed and due to in being the only function in this file I am removing it.

---
 arch/arm/mach-gemini/idle.c | 30 ------------------------------
 1 file changed, 30 deletions(-)
 delete mode 100644 arch/arm/mach-gemini/idle.c
arch/arm/mach-gemini/idle.c deleted +0 -30
deleted file mode 100644
index 2880f5a..0000000
@@ -1,30 +0,0 @@
-/*
- * arch/arm/mach-gemini/idle.c
- */
-
-#include <linux/init.h>
-#include <asm/system_misc.h>
-#include <asm/proc-fns.h>
-
-static void gemini_idle(void)
-{
-	/*
-	 * Because of broken hardware we have to enable interrupts or the CPU
-	 * will never wakeup... Acctualy it is not very good to enable
-	 * interrupts first since scheduler can miss a tick, but there is
-	 * no other way around this. Platforms that needs it for power saving
-	 * should enable it in init code, since by default it is
-	 * disabled.
-	 */
-
-	local_irq_disable();
-	cpu_do_idle();
-}
-
-static int __init gemini_idle_init(void)
-{
-	arm_pm_idle = gemini_idle;
-	return 0;
-}
-
-arch_initcall(gemini_idle_init);
Signature · 1 line
1.9.1
#1 lore raw

This is only one patch please disregard patch 1/2. Cheers Nick

Quoted 51 lines · Nicholas Krause

This patch deletes the above file in order to remove the function in this file that may cause races. In addition this function is no longer needed due to commit 8182a34d85698 fixing this issue. Therefore gemmi_idle is no longer needed and due to in being the only function in this file I am removing it.

---
 arch/arm/mach-gemini/idle.c | 30 ------------------------------
 1 file changed, 30 deletions(-)
 delete mode 100644 arch/arm/mach-gemini/idle.c
arch/arm/mach-gemini/idle.c deleted +0 -31
deleted file mode 100644
index 2880f5a..0000000
@@ -1,30 +0,0 @@
-/*
- * arch/arm/mach-gemini/idle.c
- */
-
-#include <linux/init.h>
-#include <asm/system_misc.h>
-#include <asm/proc-fns.h>
-
-static void gemini_idle(void)
-{
-       /*
-        * Because of broken hardware we have to enable interrupts or the CPU
-        * will never wakeup... Acctualy it is not very good to enable
-        * interrupts first since scheduler can miss a tick, but there is
-        * no other way around this. Platforms that needs it for power saving
-        * should enable it in init code, since by default it is
-        * disabled.
-        */
-
-       local_irq_disable();
-       cpu_do_idle();
-}
-
-static int __init gemini_idle_init(void)
-{
-       arm_pm_idle = gemini_idle;
-       return 0;
-}
-
-arch_initcall(gemini_idle_init);
--

1.9.1