* [PATCH 0/4] cpuidle: Remove remaining cpu_idle() references
@ 2014-05-23 8:54 Geert Uytterhoeven
2014-05-23 8:54 ` [PATCH 1/4] idle: Remove cpu_idle() forward declarations Geert Uytterhoeven
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-05-23 8:54 UTC (permalink / raw)
To: Thomas Gleixner, Andrew Morton; +Cc: linux-pm, linux-kernel, Geert Uytterhoeven
Hi Thomas,
After all architectures were converted to the generic idle framework,
commit d190e8195b90bc1e65c494fe08e54e9e581bfd16 ("idle: Remove
GENERIC_IDLE_LOOP config switch") removed the last caller of cpu_idle().
This series removes the remaining references to the no-longer existing
cpu_idle() function.
There are still a few references left, but these refer to the generic
mechanism, not to the C function.
- [PATCH 1/4] idle: Remove cpu_idle() forward declarations
- [PATCH 2/4] cris: Update comments for generic idle conversion
- [PATCH 3/4] powerpc: Update comments for generic idle conversion
- [PATCH 4/4] tile: Update comments for generic idle conversion
Please apply. Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/4] idle: Remove cpu_idle() forward declarations
2014-05-23 8:54 [PATCH 0/4] cpuidle: Remove remaining cpu_idle() references Geert Uytterhoeven
@ 2014-05-23 8:54 ` Geert Uytterhoeven
2014-05-23 8:54 ` [PATCH 2/4] cris: Update comments for generic idle conversion Geert Uytterhoeven
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-05-23 8:54 UTC (permalink / raw)
To: Thomas Gleixner, Andrew Morton; +Cc: linux-pm, linux-kernel, Geert Uytterhoeven
After all architectures were converted to the generic idle framework,
commit d190e8195b90bc1e65c494fe08e54e9e581bfd16 ("idle: Remove
GENERIC_IDLE_LOOP config switch") removed the last caller of cpu_idle().
The forward declarations in header files were forgotten.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
include/linux/cpu.h | 1 -
include/linux/smp.h | 2 --
2 files changed, 3 deletions(-)
diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index 81887120395c..95978ad7fcdd 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -256,7 +256,6 @@ enum cpuhp_state {
};
void cpu_startup_entry(enum cpuhp_state state);
-void cpu_idle(void);
void cpu_idle_poll_ctrl(bool enable);
diff --git a/include/linux/smp.h b/include/linux/smp.h
index 633f5edd7470..34347f26be9b 100644
--- a/include/linux/smp.h
+++ b/include/linux/smp.h
@@ -13,8 +13,6 @@
#include <linux/init.h>
#include <linux/llist.h>
-extern void cpu_idle(void);
-
typedef void (*smp_call_func_t)(void *info);
struct call_single_data {
struct llist_node llist;
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/4] cris: Update comments for generic idle conversion
2014-05-23 8:54 [PATCH 0/4] cpuidle: Remove remaining cpu_idle() references Geert Uytterhoeven
2014-05-23 8:54 ` [PATCH 1/4] idle: Remove cpu_idle() forward declarations Geert Uytterhoeven
@ 2014-05-23 8:54 ` Geert Uytterhoeven
2014-05-23 9:25 ` Jesper Nilsson
2014-05-23 8:54 ` [PATCH 3/4] powerpc: " Geert Uytterhoeven
2014-05-23 8:54 ` [PATCH 4/4] tile: " Geert Uytterhoeven
3 siblings, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-05-23 8:54 UTC (permalink / raw)
To: Thomas Gleixner, Andrew Morton
Cc: linux-pm, linux-kernel, Geert Uytterhoeven, Jesper Nilsson,
linux-cris-kernel
As of commit 8dc7c5ecd8d0f739728d844ee794c4fae169f9c2 ("cris: Use generic
idle loop"), cris no longer provides cpu_idle().
- On cris-v10, etrax_gpio_wake_up_check() is called from
default_idle() instead of cpu_idle(),
- On cris-v32, etrax_gpio_wake_up_check() is not called from
default_idle(), so remove this (copy-and-paste?) part.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: linux-cris-kernel@axis.com
---
arch/cris/arch-v10/drivers/gpio.c | 4 ++--
arch/cris/arch-v32/drivers/mach-fs/gpio.c | 6 +-----
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/arch/cris/arch-v10/drivers/gpio.c b/arch/cris/arch-v10/drivers/gpio.c
index f4374bae4fb4..64285e0d3481 100644
--- a/arch/cris/arch-v10/drivers/gpio.c
+++ b/arch/cris/arch-v10/drivers/gpio.c
@@ -833,8 +833,8 @@ static int __init gpio_init(void)
printk(KERN_INFO "ETRAX 100LX GPIO driver v2.5, (c) 2001-2008 "
"Axis Communications AB\n");
/* We call etrax_gpio_wake_up_check() from timer interrupt and
- * from cpu_idle() in kernel/process.c
- * The check in cpu_idle() reduces latency from ~15 ms to ~6 ms
+ * from default_idle() in kernel/process.c
+ * The check in default_idle() reduces latency from ~15 ms to ~6 ms
* in some tests.
*/
res = request_irq(TIMER0_IRQ_NBR, gpio_poll_timer_interrupt,
diff --git a/arch/cris/arch-v32/drivers/mach-fs/gpio.c b/arch/cris/arch-v32/drivers/mach-fs/gpio.c
index 9e54273af0ca..009f4ee1bd09 100644
--- a/arch/cris/arch-v32/drivers/mach-fs/gpio.c
+++ b/arch/cris/arch-v32/drivers/mach-fs/gpio.c
@@ -958,11 +958,7 @@ gpio_init(void)
printk(KERN_INFO "ETRAX FS GPIO driver v2.5, (c) 2003-2007 "
"Axis Communications AB\n");
- /* We call etrax_gpio_wake_up_check() from timer interrupt and
- * from cpu_idle() in kernel/process.c
- * The check in cpu_idle() reduces latency from ~15 ms to ~6 ms
- * in some tests.
- */
+ /* We call etrax_gpio_wake_up_check() from timer interrupt */
if (request_irq(TIMER0_INTR_VECT, gpio_poll_timer_interrupt,
IRQF_SHARED, "gpio poll", &alarmlist))
printk(KERN_ERR "timer0 irq for gpio\n");
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/4] powerpc: Update comments for generic idle conversion
2014-05-23 8:54 [PATCH 0/4] cpuidle: Remove remaining cpu_idle() references Geert Uytterhoeven
2014-05-23 8:54 ` [PATCH 1/4] idle: Remove cpu_idle() forward declarations Geert Uytterhoeven
2014-05-23 8:54 ` [PATCH 2/4] cris: Update comments for generic idle conversion Geert Uytterhoeven
@ 2014-05-23 8:54 ` Geert Uytterhoeven
2014-05-23 8:54 ` [PATCH 4/4] tile: " Geert Uytterhoeven
3 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-05-23 8:54 UTC (permalink / raw)
To: Thomas Gleixner, Andrew Morton
Cc: linux-pm, linux-kernel, Geert Uytterhoeven,
Benjamin Herrenschmidt, linuxppc-dev
As of commit 799fef06123f86ff69cf754f996219e6ad1678f8 ("powerpc: Use
generic idle loop"), this applies to arch_cpu_idle() instead of cpu_idle().
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@lists.ozlabs.org
---
arch/powerpc/kernel/irq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index ca1cd7459c4a..248ee7e5bebd 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -304,7 +304,7 @@ void notrace restore_interrupts(void)
* being re-enabled and generally sanitized the lazy irq state,
* and in the latter case it will leave with interrupts hard
* disabled and marked as such, so the local_irq_enable() call
- * in cpu_idle() will properly re-enable everything.
+ * in arch_cpu_idle() will properly re-enable everything.
*/
bool prep_irq_for_idle(void)
{
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/4] tile: Update comments for generic idle conversion
2014-05-23 8:54 [PATCH 0/4] cpuidle: Remove remaining cpu_idle() references Geert Uytterhoeven
` (2 preceding siblings ...)
2014-05-23 8:54 ` [PATCH 3/4] powerpc: " Geert Uytterhoeven
@ 2014-05-23 8:54 ` Geert Uytterhoeven
2014-05-23 17:32 ` Chris Metcalf
3 siblings, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-05-23 8:54 UTC (permalink / raw)
To: Thomas Gleixner, Andrew Morton
Cc: linux-pm, linux-kernel, Geert Uytterhoeven, Chris Metcalf
As of commit 0dc8153cfebac68c9523b8852b14f10b31209f08 ("tile: Use generic
idle loop"), this applies to arch_cpu_idle() instead of cpu_idle().
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Chris Metcalf <cmetcalf@tilera.com>
---
arch/tile/include/asm/thread_info.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/tile/include/asm/thread_info.h b/arch/tile/include/asm/thread_info.h
index 729aa107f64e..80ba7d40ecc0 100644
--- a/arch/tile/include/asm/thread_info.h
+++ b/arch/tile/include/asm/thread_info.h
@@ -94,7 +94,7 @@ register unsigned long stack_pointer __asm__("sp");
/* Sit on a nap instruction until interrupted. */
extern void smp_nap(void);
-/* Enable interrupts racelessly and nap forever: helper for cpu_idle(). */
+/* Enable interrupts racelessly and nap forever: helper for arch_cpu_idle(). */
extern void _cpu_idle(void);
#else /* __ASSEMBLY__ */
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/4] cris: Update comments for generic idle conversion
2014-05-23 8:54 ` [PATCH 2/4] cris: Update comments for generic idle conversion Geert Uytterhoeven
@ 2014-05-23 9:25 ` Jesper Nilsson
0 siblings, 0 replies; 7+ messages in thread
From: Jesper Nilsson @ 2014-05-23 9:25 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Thomas Gleixner, Andrew Morton, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org, Jesper Nilsson, linux-cris-kernel
On Fri, May 23, 2014 at 10:54:23AM +0200, Geert Uytterhoeven wrote:
> As of commit 8dc7c5ecd8d0f739728d844ee794c4fae169f9c2 ("cris: Use generic
> idle loop"), cris no longer provides cpu_idle().
>
> - On cris-v10, etrax_gpio_wake_up_check() is called from
> default_idle() instead of cpu_idle(),
> - On cris-v32, etrax_gpio_wake_up_check() is not called from
> default_idle(), so remove this (copy-and-paste?) part.
Yes, the comment for ETRAX FS (mach-fs) is definitely copy-pasted.
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Jesper Nilsson <jesper.nilsson@axis.com>
/^JN - Jesper Nilsson
--
Jesper Nilsson -- jesper.nilsson@axis.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 4/4] tile: Update comments for generic idle conversion
2014-05-23 8:54 ` [PATCH 4/4] tile: " Geert Uytterhoeven
@ 2014-05-23 17:32 ` Chris Metcalf
0 siblings, 0 replies; 7+ messages in thread
From: Chris Metcalf @ 2014-05-23 17:32 UTC (permalink / raw)
To: Geert Uytterhoeven, Thomas Gleixner, Andrew Morton; +Cc: linux-pm, linux-kernel
On 5/23/2014 4:54 AM, Geert Uytterhoeven wrote:
> As of commit 0dc8153cfebac68c9523b8852b14f10b31209f08 ("tile: Use generic
> idle loop"), this applies to arch_cpu_idle() instead of cpu_idle().
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Cc: Chris Metcalf <cmetcalf@tilera.com>
> ---
> arch/tile/include/asm/thread_info.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks! Taken into the linux-tile tree.
--
Chris Metcalf, Tilera Corp.
http://www.tilera.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-05-23 17:32 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-23 8:54 [PATCH 0/4] cpuidle: Remove remaining cpu_idle() references Geert Uytterhoeven
2014-05-23 8:54 ` [PATCH 1/4] idle: Remove cpu_idle() forward declarations Geert Uytterhoeven
2014-05-23 8:54 ` [PATCH 2/4] cris: Update comments for generic idle conversion Geert Uytterhoeven
2014-05-23 9:25 ` Jesper Nilsson
2014-05-23 8:54 ` [PATCH 3/4] powerpc: " Geert Uytterhoeven
2014-05-23 8:54 ` [PATCH 4/4] tile: " Geert Uytterhoeven
2014-05-23 17:32 ` Chris Metcalf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox