Skip to contentSkip to conversation

cpuidle: Fix build on ARM and SH

PATCH In review Mark Brown 3 participants 3 messages Apr 4, 2011 – Apr 15, 2011

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 cpuidle: Fix build on ARM and SH

Commit 5f8cf82 (cpuidle: stop using pm_idle) converted arches to use cpuidle_idle_call() but contained typos on ARM and SH transposing the function name into cpuidle_call_idle().

---
 arch/arm/kernel/process.c |    2 +-
 arch/sh/kernel/idle.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/kernel/process.c +1 -1
index dc9d685..f47660e 100644
@@ -197,7 +197,7 @@ void cpu_idle(void)
 				cpu_relax();
 			} else {
 				stop_critical_timings();
-				if (cpuidle_call_idle())
+				if (cpuidle_idle_call())
 					pm_idle();
 				start_critical_timings();
 				/*
arch/sh/kernel/idle.c +1 -1
index 9c7099e..1db1968 100644
@@ -101,7 +101,7 @@ void cpu_idle(void)
 			local_irq_disable();
 			/* Don't trace irqs off for idle */
 			stop_critical_timings();
-			if (cpuidle_call_idle())
+			if (cpuidle_idle_call())
 				pm_idle();
 			/*
 			 * Sanity check to ensure that pm_idle() returns
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 5 lines · Mark Brown

Commit 5f8cf82 (cpuidle: stop using pm_idle) converted arches to use cpuidle_idle_call() but contained typos on ARM and SH transposing the function name into cpuidle_call_idle().

When will this patch get into linux-next? Every ARM and SH build has failed for the past 3 days presumably due to this. Stephen, can you pick it up for the time being?

Quoted 31 lines
---
 arch/arm/kernel/process.c |    2 +-
 arch/sh/kernel/idle.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/kernel/process.c +1 -1
index dc9d685..f47660e 100644
@@ -197,7 +197,7 @@ void cpu_idle(void)
 				cpu_relax();
 			} else {
 				stop_critical_timings();
-				if (cpuidle_call_idle())
+				if (cpuidle_idle_call())
 					pm_idle();
 				start_critical_timings();
 				/*
arch/sh/kernel/idle.c +1 -1
index 9c7099e..1db1968 100644
@@ -101,7 +101,7 @@ void cpu_idle(void)
 			local_irq_disable();
 			/* Don't trace irqs off for idle */
 			stop_critical_timings();
-			if (cpuidle_call_idle())
+			if (cpuidle_idle_call())
 				pm_idle();
 			/*
 			 * Sanity check to ensure that pm_idle() returns
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
#2 lore raw

Hi Stephen,

Sorry for the delay.

Quoted 35 lines · On Wed, 06 Apr 2011 22:57:19 -0700 Stephen Boyd <[email protected]> wrote:
Quoted 5 lines · Mark Brown

Commit 5f8cf82 (cpuidle: stop using pm_idle) converted arches to use cpuidle_idle_call() but contained typos on ARM and SH transposing the function name into cpuidle_call_idle().

When will this patch get into linux-next? Every ARM and SH build has failed for the past 3 days presumably due to this. Stephen, can you pick it up for the time being?

Quoted 23 lines
---
 arch/arm/kernel/process.c |    2 +-
 arch/sh/kernel/idle.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/kernel/process.c +1 -1
index dc9d685..f47660e 100644
@@ -197,7 +197,7 @@ void cpu_idle(void)
 				cpu_relax();
 			} else {
 				stop_critical_timings();
-				if (cpuidle_call_idle())
+				if (cpuidle_idle_call())
 					pm_idle();
 				start_critical_timings();
 				/*
arch/sh/kernel/idle.c +0 -0
index 9c7099e..1db1968 100644
@@ -101,7 +101,7 @@ void cpu_idle(void)
Quoted 8 lines

arch/sh/kernel/idle.c void cpu_idle(void) · line 107

Quoted 8 lines
arch/sh/kernel/idle.c +1 -1
 			local_irq_disable();
 			/* Don't trace irqs off for idle */
 			stop_critical_timings();
-			if (cpuidle_call_idle())
+			if (cpuidle_idle_call())
 				pm_idle();
 			/*
 			 * Sanity check to ensure that pm_idle() returns

I fished the patch of LKML and have applied it from today. However, I think SH may need a further patch for this errors:

arch/sh/kernel/idle.c:25: error: static declaration of 'pm_idle' follows non-static declaration include/linux/pm.h:34: error: previous declaration of 'pm_idle' was here

Len, can you please get these fixed up in your idle-test tree.

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/