linux-stable-rt/arch/arm
Alexey Dobriyan e8edc6e03a Detach sched.h from mm.h
First thing mm.h does is including sched.h solely for can_do_mlock() inline
function which has "current" dereference inside. By dealing with can_do_mlock()
mm.h can be detached from sched.h which is good. See below, why.

This patch
a) removes unconditional inclusion of sched.h from mm.h
b) makes can_do_mlock() normal function in mm/mlock.c
c) exports can_do_mlock() to not break compilation
d) adds sched.h inclusions back to files that were getting it indirectly.
e) adds less bloated headers to some files (asm/signal.h, jiffies.h) that were
   getting them indirectly

Net result is:
a) mm.h users would get less code to open, read, preprocess, parse, ... if
   they don't need sched.h
b) sched.h stops being dependency for significant number of files:
   on x86_64 allmodconfig touching sched.h results in recompile of 4083 files,
   after patch it's only 3744 (-8.3%).

Cross-compile tested on

	all arm defconfigs, all mips defconfigs, all powerpc defconfigs,
	alpha alpha-up
	arm
	i386 i386-up i386-defconfig i386-allnoconfig
	ia64 ia64-up
	m68k
	mips
	parisc parisc-up
	powerpc powerpc-up
	s390 s390-up
	sparc sparc-up
	sparc64 sparc64-up
	um-x86_64
	x86_64 x86_64-up x86_64-defconfig x86_64-allnoconfig

as well as my two usual configs.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-21 09:18:19 -07:00
..
boot
common
configs [ARM] 4333/2: KS8695: Micrel Development board 2007-05-11 22:02:55 +01:00
kernel arm: walk_stacktrace() needs to be exported 2007-05-15 18:56:37 -07:00
lib
mach-aaec2000
mach-at91 Merge branch 'fixes' into devel 2007-05-12 16:12:12 +01:00
mach-clps711x
mach-clps7500
mach-davinci [ARM] 4303/3: base kernel support for TI DaVinci 2007-05-11 17:26:55 +01:00
mach-ebsa110 [ARM] EBSA110: fix build errors caused by missing "const" 2007-05-11 17:20:02 +01:00
mach-ep93xx
mach-footbridge
mach-h720x
mach-imx
mach-integrator
mach-iop13xx Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
mach-iop32x
mach-iop33x
mach-ixp4xx
mach-ixp23xx
mach-ixp2000
mach-ks8695 [ARM] 4333/2: KS8695: Micrel Development board 2007-05-11 22:02:55 +01:00
mach-l7200
mach-lh7a40x
mach-netx
mach-ns9xxx
mach-omap1 ARM: OMAP: Fix section mismatch warning 2007-05-10 16:32:54 -07:00
mach-omap2 Merge branch 'fixes' into devel 2007-05-12 16:12:12 +01:00
mach-pnx4008 [ARM] Spinlock initializer cleanup 2007-05-11 17:38:04 +01:00
mach-pxa [ARM] 4362/1: trizeps4 update 2007-05-11 17:19:20 +01:00
mach-realview
mach-rpc
mach-s3c2400
mach-s3c2410 [ARM] 4359/3: H1940: Add bluetooth support 2007-05-11 17:19:37 +01:00
mach-s3c2412
mach-s3c2440
mach-s3c2442
mach-s3c2443 [ARM] 4365/1: Add AC97 clock to s3c2443 machine 2007-05-11 17:19:26 +01:00
mach-sa1100
mach-shark
mach-versatile
mm Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
nwfpe
oprofile
plat-iop Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
plat-omap ARM: OMAP: 24xx pinmux updates 2007-05-10 15:51:09 -07:00
plat-s3c24xx
tools [ARM] Update mach-types 2007-05-11 19:54:39 +01:00
vfp
Kconfig Merge branch 'fixes' into devel 2007-05-12 16:12:12 +01:00
Kconfig-nommu
Kconfig.debug
Makefile [ARM] 4331/3: Support for Micrel/Kendin KS8695 processor 2007-05-11 22:02:48 +01:00