idle: Consolidate idle implementations
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest34 patches 52 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/34 | arch: Cleanup enable/disable_hltarch/ arch/ arch/ +4 more | +3 | 0 replies | |
| 2/34 | arch: Consolidate tsk_is_polling()arch/ arch/ arch/ +12 more | +20 | 3 replies | |
| 3/34 | idle: Implement set/clr functions for need_resched pollinclude/ | +22 | 1 reply | |
| 4/34 | idle: Provide a generic entry point for the idle codeinclude/ init/ kernel/ +2 more | +21 | 1 reply | |
| 5/34 | idle: Implement generic idle functionarch/ include/ kernel/ | +116 | 9 replies | |
| 6/34 | arc: Use generic idle looparch/ arch/ arch/ | +3 | 1 reply | |
| 7/34 | alpha: Use generic idle looparch/ arch/ arch/ | +2 | 2 replies | |
| 8/34 | arm: Use generic idle looparch/ arch/ arch/ +12 more | +47 | 12 replies | |
| 9/34 | arm64: Use generic idle looparch/ arch/ arch/ | +7 | 1 reply | |
| 10/34 | avr32: Use generic idle looparch/ arch/ arch/ +2 more | +9 | 1 reply | |
| 11/34 | bfin: Use generic idle looparch/ arch/ arch/ | +4 | 0 replies | |
| 12/34 | c6x: Use generic idle looparch/ arch/ | +2 | 0 replies | |
| 13/34 | cris: Use generic idle looparch/ arch/ arch/ +2 more | +10 | 2 replies | |
| 14/34 | frv: Use generic idle looparch/ arch/ | +6 | 0 replies | |
| 15/34 | h8300: Use generic idle looparch/ arch/ | +5 | 0 replies | |
| 16/34 | hexagon: Use generic idle looparch/ arch/ arch/ | +5 | 0 replies | |
| 17/34 | ia64: Use generic idle looparch/ arch/ arch/ +1 more | +23 | 1 reply | |
| 18/34 | m32r: Use generic idle looparch/ arch/ arch/ | +2 | 0 replies | |
| 19/34 | m68k: Use generic idle looparch/ arch/ | +5 | 0 replies | |
| 20/34 | metag: Use generic idle looparch/ arch/ arch/ | +5 | 2 replies | |
| 21/34 | microblaze: Use generic idle looparch/ arch/ arch/ | +2 | 0 replies | |
| 22/34 | mips: Use generic idle looparch/ arch/ arch/ | +15 | 1 reply | |
| 23/34 | mn10300: Use generic idle looparch/ arch/ arch/ | +8 | 0 replies | |
| 24/34 | openrisc: Use generic idle looparch/ arch/ | +1 | 0 replies | |
| 25/34 | parisc: Use generic idle looparch/ arch/ arch/ | +2 | 0 replies | |
| 26/34 | powerpc: Use generic idle looparch/ arch/ arch/ | +24 | 2 replies | |
| 27/34 | s390: Use generic idle looparch/ arch/ | +8 | 2 replies | |
| 28/34 | score: Use generic idle looparch/ arch/ | +1 | 0 replies | |
| 29/34 | sh: Use generic idle looparch/ arch/ arch/ | +12 | 1 reply | |
| 30/34 | tile: Enter idle with preemption disabledarch/ | +0 | 3 replies | |
| 31/34 | tile: Use generic idle looparch/ arch/ | +7 | 2 replies | |
| 32/34 | unicore: Use generic idle looparch/ arch/ | +4 | 0 replies | |
| 33/34 | x86: Use generic idle looparch/ arch/ arch/ +1 more | +32 | 1 reply | |
| 34/34 | xtensa: Use generic idle looparch/ arch/ | +3 | 1 reply |
Reviews trailers per patch
5 of 34 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Chris Metcalf | Kevin Hilman | Catalin Marinas | Jesper Nilsson | David S. Miller | Deepthi Dharwar | Srivatsa S. Bhat | Hans-Christian Egtvedt | Paul E. McKenney |
|---|---|---|---|---|---|---|---|---|---|
| Series | A-b A-b | R-b R-b | |||||||
| 1/34 | |||||||||
| 2/34 | |||||||||
| 3/34 | |||||||||
| 4/34 | |||||||||
| 5/34 | |||||||||
| 6/34 | |||||||||
| 7/34 | |||||||||
| 8/34 | T-b | R-b | A-b A-b | ||||||
| 9/34 | A-b | ||||||||
| 10/34 | A-b | ||||||||
| 11/34 | |||||||||
| 12/34 | |||||||||
| 13/34 | A-b | ||||||||
| 14/34 | |||||||||
| 15/34 | |||||||||
| 16/34 | |||||||||
| 17/34 | |||||||||
| 18/34 | |||||||||
| 19/34 | |||||||||
| 20/34 | |||||||||
| 21/34 | |||||||||
| 22/34 | |||||||||
| 23/34 | |||||||||
| 24/34 | |||||||||
| 25/34 | |||||||||
| 26/34 | T-b | ||||||||
| 27/34 | |||||||||
| 28/34 | |||||||||
| 29/34 | |||||||||
| 30/34 | A-b | ||||||||
| 31/34 | |||||||||
| 32/34 | |||||||||
| 33/34 | |||||||||
| 34/34 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 9 reviewers.
Cover letter [patch 00/34] idle: Consolidate idle implementations
Each architecture implements its own cpu_idle() code, which is more or less the same on all architectures (plus/minus a few bugs and a few missing extra functionalities, instrumentation ...). That also forces everyone who is interested in idle related features to add new functionality to every architecture. What a waste.
Aside of that pointless code duplicaiton the ongoing quest to consolidate the cpu hotplug code needs a common entry point for the non boot cpus.
The following series implements a generic idle function and converts most architectures over. I left out SPARC (it involves sparc asm) and UM (it made me barf). If we can move those architectures as well, we can get rid of the extra config switch and have everything consolidated.
I spent a lot of time to make sure that the conversion preserved the non obvious differences of the architecture implementations, but I really need help from the affected maintainers to prove the correctness.
Thanks,
tglx
--- arch/openrisc/kernel/idle.c | 73 ------------ linux-2.6/arch/Kconfig | 3 linux-2.6/arch/alpha/Kconfig | 1 linux-2.6/arch/alpha/include/asm/thread_info.h | 2 linux-2.6/arch/alpha/kernel/process.c | 19 --- linux-2.6/arch/alpha/kernel/smp.c | 3 linux-2.6/arch/arc/Kconfig | 1 linux-2.6/arch/arc/kernel/process.c | 27 ---- linux-2.6/arch/arc/kernel/smp.c | 2 linux-2.6/arch/arm/Kconfig | 2 linux-2.6/arch/arm/include/asm/system_misc.h | 3 linux-2.6/arch/arm/kernel/process.c | 100 ++++------------- linux-2.6/arch/arm/kernel/smp.c | 2 linux-2.6/arch/arm/mach-gemini/idle.c | 4 linux-2.6/arch/arm/mach-gemini/irq.c | 2 linux-2.6/arch/arm/mach-ixp4xx/common.c | 2 linux-2.6/arch/arm/mach-omap1/pm.c | 5 linux-2.6/arch/arm/mach-omap2/omap_hwmod.c | 6 - linux-2.6/arch/arm/mach-omap2/pm.c | 5 linux-2.6/arch/arm/mach-orion5x/board-dt.c | 2 linux-2.6/arch/arm/mach-orion5x/common.c | 2 linux-2.6/arch/arm/mach-shark/core.c | 2 linux-2.6/arch/arm/mach-shmobile/suspend.c | 4 linux-2.6/arch/arm/mach-w90x900/dev.c | 2 linux-2.6/arch/arm64/Kconfig | 1 linux-2.6/arch/arm64/kernel/process.c | 43 ------- linux-2.6/arch/arm64/kernel/smp.c | 2 linux-2.6/arch/avr32/Kconfig | 1 linux-2.6/arch/avr32/kernel/process.c | 13 -- linux-2.6/arch/avr32/kernel/time.c | 8 + linux-2.6/arch/avr32/mach-at32ap/include/mach/pm.h | 24 ---- linux-2.6/arch/avr32/mach-at32ap/pm-at32ap700x.S | 7 - linux-2.6/arch/blackfin/Kconfig | 1 linux-2.6/arch/blackfin/kernel/process.c | 30 ----- linux-2.6/arch/blackfin/mach-common/smp.c | 2 linux-2.6/arch/c6x/Kconfig | 1 linux-2.6/arch/c6x/kernel/process.c | 28 ---- linux-2.6/arch/cris/Kconfig | 1 linux-2.6/arch/cris/arch-v10/kernel/process.c | 3 linux-2.6/arch/cris/arch-v32/kernel/process.c | 12 -- linux-2.6/arch/cris/arch-v32/kernel/smp.c | 4 linux-2.6/arch/cris/include/asm/processor.h | 7 - linux-2.6/arch/cris/kernel/process.c | 49 -------- linux-2.6/arch/frv/Kconfig | 1 linux-2.6/arch/frv/kernel/process.c | 27 ---- linux-2.6/arch/h8300/Kconfig | 1 linux-2.6/arch/h8300/kernel/process.c | 35 ------ linux-2.6/arch/hexagon/Kconfig | 1 linux-2.6/arch/hexagon/kernel/process.c | 23 ---- linux-2.6/arch/hexagon/kernel/smp.c | 2 linux-2.6/arch/ia64/Kconfig | 1 linux-2.6/arch/ia64/include/asm/thread_info.h | 2 linux-2.6/arch/ia64/kernel/perfmon.c | 13 -- linux-2.6/arch/ia64/kernel/process.c | 83 ++------------ linux-2.6/arch/ia64/kernel/smpboot.c | 2 linux-2.6/arch/m32r/Kconfig | 1 linux-2.6/arch/m32r/kernel/process.c | 18 --- linux-2.6/arch/m32r/kernel/smpboot.c | 2 linux-2.6/arch/m68k/Kconfig | 1 linux-2.6/arch/m68k/kernel/process.c | 32 ----- linux-2.6/arch/metag/Kconfig | 1 linux-2.6/arch/metag/include/asm/thread_info.h | 2 linux-2.6/arch/metag/kernel/process.c | 32 ----- linux-2.6/arch/metag/kernel/smp.c | 2 linux-2.6/arch/microblaze/Kconfig | 2 linux-2.6/arch/microblaze/include/asm/processor.h | 5 linux-2.6/arch/microblaze/include/asm/thread_info.h | 1 linux-2.6/arch/microblaze/kernel/process.c | 65 ----------- linux-2.6/arch/mips/Kconfig | 1 linux-2.6/arch/mips/kernel/process.c | 46 ++------ linux-2.6/arch/mips/kernel/smp.c | 2 linux-2.6/arch/mn10300/Kconfig | 1 linux-2.6/arch/mn10300/include/asm/thread_info.h | 2 linux-2.6/arch/mn10300/kernel/process.c | 70 +----------- linux-2.6/arch/mn10300/kernel/smp.c | 7 - linux-2.6/arch/openrisc/Kconfig | 1 linux-2.6/arch/openrisc/include/asm/thread_info.h | 2 linux-2.6/arch/parisc/Kconfig | 1 linux-2.6/arch/parisc/include/asm/thread_info.h | 2 linux-2.6/arch/parisc/kernel/process.c | 22 --- linux-2.6/arch/parisc/kernel/smp.c | 2 linux-2.6/arch/powerpc/Kconfig | 1 linux-2.6/arch/powerpc/include/asm/thread_info.h | 4 linux-2.6/arch/powerpc/kernel/idle.c | 78 +++---------- linux-2.6/arch/powerpc/kernel/smp.c | 2 linux-2.6/arch/s390/kernel/process.c | 25 +--- linux-2.6/arch/s390/kernel/smp.c | 3 linux-2.6/arch/score/Kconfig | 1 linux-2.6/arch/score/kernel/process.c | 18 --- linux-2.6/arch/sh/Kconfig | 2 linux-2.6/arch/sh/include/asm/thread_info.h | 4 linux-2.6/arch/sh/kernel/idle.c | 102 +---------------- linux-2.6/arch/sh/kernel/smp.c | 2 linux-2.6/arch/sparc/include/asm/thread_info_32.h | 2 linux-2.6/arch/sparc/include/asm/thread_info_64.h | 2 linux-2.6/arch/tile/include/asm/thread_info.h | 2 linux-2.6/arch/tile/kernel/process.c | 61 +--------- linux-2.6/arch/tile/kernel/smpboot.c | 4 linux-2.6/arch/unicore32/Kconfig | 1 linux-2.6/arch/unicore32/kernel/process.c | 21 --- linux-2.6/arch/x86/Kconfig | 1 linux-2.6/arch/x86/include/asm/thread_info.h | 2 linux-2.6/arch/x86/kernel/process.c | 106 +++++------------- linux-2.6/arch/x86/kernel/smpboot.c | 2 linux-2.6/arch/x86/xen/smp.c | 2 linux-2.6/arch/xtensa/Kconfig | 1 linux-2.6/arch/xtensa/kernel/process.c | 14 -- linux-2.6/include/linux/cpu.h | 16 ++ linux-2.6/include/linux/sched.h | 41 +++++++ linux-2.6/init/main.c | 2 linux-2.6/kernel/Makefile | 1 linux-2.6/kernel/cpu/Makefile | 1 linux-2.6/kernel/cpu/idle.c | 115 ++++++++++++++++++++ linux-2.6/kernel/sched/core.c | 5 114 files changed, 432 insertions(+), 1237 deletions(-)