From: Linus Torvalds Date: Wed, 28 Mar 2012 22:58:21 +0000 (-0700) Subject: Merge tag 'split-asm_system_h-for-linus-20120328' of git://git.kernel.org/pub/scm... X-Git-Tag: v3.4-rc1~54 X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=0195c00244dc2e9f522475868fa278c473ba7339;p=~andy%2Flinux Merge tag 'split-asm_system_h-for-linus-20120328' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-asm_system Pull "Disintegrate and delete asm/system.h" from David Howells: "Here are a bunch of patches to disintegrate asm/system.h into a set of separate bits to relieve the problem of circular inclusion dependencies. I've built all the working defconfigs from all the arches that I can and made sure that they don't break. The reason for these patches is that I recently encountered a circular dependency problem that came about when I produced some patches to optimise get_order() by rewriting it to use ilog2(). This uses bitops - and on the SH arch asm/bitops.h drags in asm-generic/get_order.h by a circuituous route involving asm/system.h. The main difficulty seems to be asm/system.h. It holds a number of low level bits with no/few dependencies that are commonly used (eg. memory barriers) and a number of bits with more dependencies that aren't used in many places (eg. switch_to()). These patches break asm/system.h up into the following core pieces: (1) asm/barrier.h Move memory barriers here. This already done for MIPS and Alpha. (2) asm/switch_to.h Move switch_to() and related stuff here. (3) asm/exec.h Move arch_align_stack() here. Other process execution related bits could perhaps go here from asm/processor.h. (4) asm/cmpxchg.h Move xchg() and cmpxchg() here as they're full word atomic ops and frequently used by atomic_xchg() and atomic_cmpxchg(). (5) asm/bug.h Move die() and related bits. (6) asm/auxvec.h Move AT_VECTOR_SIZE_ARCH here. Other arch headers are created as needed on a per-arch basis." Fixed up some conflicts from other header file cleanups and moving code around that has happened in the meantime, so David's testing is somewhat weakened by that. We'll find out anything that got broken and fix it.. * tag 'split-asm_system_h-for-linus-20120328' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-asm_system: (38 commits) Delete all instances of asm/system.h Remove all #inclusions of asm/system.h Add #includes needed to permit the removal of asm/system.h Move all declarations of free_initmem() to linux/mm.h Disintegrate asm/system.h for OpenRISC Split arch_align_stack() out from asm-generic/system.h Split the switch_to() wrapper out of asm-generic/system.h Move the asm-generic/system.h xchg() implementation to asm-generic/cmpxchg.h Create asm-generic/barrier.h Make asm-generic/cmpxchg.h #include asm-generic/cmpxchg-local.h Disintegrate asm/system.h for Xtensa Disintegrate asm/system.h for Unicore32 [based on ver #3, changed by gxt] Disintegrate asm/system.h for Tile Disintegrate asm/system.h for Sparc Disintegrate asm/system.h for SH Disintegrate asm/system.h for Score Disintegrate asm/system.h for S390 Disintegrate asm/system.h for PowerPC Disintegrate asm/system.h for PA-RISC Disintegrate asm/system.h for MN10300 ... --- 0195c00244dc2e9f522475868fa278c473ba7339 diff --cc arch/arm/include/asm/system_misc.h index 00000000000,9e65b23be14..5a85f148b60 mode 000000,100644..100644 --- a/arch/arm/include/asm/system_misc.h +++ b/arch/arm/include/asm/system_misc.h @@@ -1,0 -1,28 +1,29 @@@ + #ifndef __ASM_ARM_SYSTEM_MISC_H + #define __ASM_ARM_SYSTEM_MISC_H + + #ifndef __ASSEMBLY__ + + #include + #include + #include + + extern void cpu_init(void); + + void soft_restart(unsigned long); + extern void (*arm_pm_restart)(char str, const char *cmd); ++extern void (*arm_pm_idle)(void); + + #define UDBG_UNDEFINED (1 << 0) + #define UDBG_SYSCALL (1 << 1) + #define UDBG_BADABORT (1 << 2) + #define UDBG_SEGV (1 << 3) + #define UDBG_BUS (1 << 4) + + extern unsigned int user_debug; + + extern void disable_hlt(void); + extern void enable_hlt(void); + + #endif /* !__ASSEMBLY__ */ + + #endif /* __ASM_ARM_SYSTEM_MISC_H */ diff --cc arch/arm/mach-ebsa110/leds.c index d43121a30aa,101a3204438..99e14e36250 --- a/arch/arm/mach-ebsa110/leds.c +++ b/arch/arm/mach-ebsa110/leds.c @@@ -17,11 -17,8 +17,10 @@@ #include #include - #include #include +#include "core.h" + static spinlock_t leds_lock; static void ebsa110_leds_event(led_event_t ledevt) diff --cc arch/arm/mach-omap1/id.c index f24c1e2c504,b3f3363cd45..2b28e1da14b --- a/arch/arm/mach-omap1/id.c +++ b/arch/arm/mach-omap1/id.c @@@ -15,11 -15,9 +15,12 @@@ #include #include #include + #include + #include +#include + #define OMAP_DIE_ID_0 0xfffe1800 #define OMAP_DIE_ID_1 0xfffe1804 #define OMAP_PRODUCTION_ID_0 0xfffe2000 diff --cc arch/arm/mach-omap1/time.c index 2fae6a2740f,7595e0ac225..4d8dd9a1b04 --- a/arch/arm/mach-omap1/time.c +++ b/arch/arm/mach-omap1/time.c @@@ -44,7 -44,7 +44,6 @@@ #include #include - #include -#include #include #include #include diff --cc arch/arm/mach-omap1/timer32k.c index a2e6d0709df,10bcd1364cd..325b9a0aa4a --- a/arch/arm/mach-omap1/timer32k.c +++ b/arch/arm/mach-omap1/timer32k.c @@@ -46,7 -46,7 +46,6 @@@ #include #include - #include -#include #include #include #include diff --cc arch/arm/mach-omap2/pm24xx.c index 5ca45ca7694,730bb009587..95442b69ae2 --- a/arch/arm/mach-omap2/pm24xx.c +++ b/arch/arm/mach-omap2/pm24xx.c @@@ -33,7 -34,9 +33,8 @@@ #include #include #include + #include -#include #include #include #include diff --cc arch/arm/mach-s3c24xx/s3c2412.c index c6eac987109,100ef1c320e..d4bc7f960bb --- a/arch/arm/mach-s3c24xx/s3c2412.c +++ b/arch/arm/mach-s3c24xx/s3c2412.c @@@ -31,7 -31,10 +31,8 @@@ #include #include #include + #include -#include - #include #include diff --cc arch/arm/mach-s3c24xx/s3c2416.c index 0e9a71c90ed,ed67ec9c83d..7743fade50d --- a/arch/arm/mach-s3c24xx/s3c2416.c +++ b/arch/arm/mach-s3c24xx/s3c2416.c @@@ -43,7 -43,9 +43,8 @@@ #include #include #include + #include -#include #include #include diff --cc arch/arm/mach-sa1100/generic.c index 1d0f71b17a2,9ad94691743..7c524b4e415 --- a/arch/arm/mach-sa1100/generic.c +++ b/arch/arm/mach-sa1100/generic.c @@@ -20,17 -19,13 +20,17 @@@ #include #include +#include