linux-stable/arch/parisc/kernel
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
..
asm-offsets.c rename thread_info to stack 2007-05-09 12:30:56 -07:00
binfmt_elf32.c [PATCH] elf: Always define elf_addr_t in linux/elf.h 2006-12-07 08:39:38 -08:00
cache.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
drivers.c [PARISC] display parisc device modalias in sysfs 2007-02-17 01:08:09 -05:00
entry.S [PARISC] do not export get_register/set_register 2007-02-17 01:18:20 -05:00
firmware.c [PARISC] use CONFIG_64BIT instead of __LP64__ 2007-02-17 01:16:40 -05:00
hardware.c [PARISC] Add hardware found in the rp8400 2006-10-04 06:49:06 -06:00
head.S [PARISC] more ENTRY(), ENDPROC(), END() conversions 2007-02-17 01:16:12 -05:00
hpmc.S [PARISC] more ENTRY(), ENDPROC(), END() conversions 2007-02-17 01:16:12 -05:00
init_task.c [PATCH] nsproxy: move init_nsproxy into kernel/nsproxy.c 2006-10-02 07:57:20 -07:00
inventory.c [PARISC] use CONFIG_64BIT instead of __LP64__ 2007-02-17 01:16:40 -05:00
irq.c Add IRQF_IRQPOLL flag on parisc 2007-05-08 11:15:22 -07:00
Makefile [PATCH] sanitize building of fs/compat_ioctl.c 2006-01-10 08:01:33 -08:00
module.c [PARISC] use CONFIG_64BIT instead of __LP64__ 2007-02-17 01:16:40 -05:00
pa7300lc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pacache.S [PARISC] add ASM_EXCEPTIONTABLE_ENTRY() macro 2007-02-17 01:16:26 -05:00
parisc_ksyms.c [PARISC] use CONFIG_64BIT instead of __LP64__ 2007-02-17 01:16:40 -05:00
pci-dma.c [PARISC] more sparse fixes 2006-12-08 00:34:34 -05:00
pci.c [PARISC] avoid compiler warnings when compiling 64bit 2006-12-08 00:34:38 -05:00
pdc_chassis.c [PARISC] Work around machines which do not support chassis warnings 2006-06-27 23:28:37 +00:00
pdc_cons.c [PATCH] vt: Remove VT-specific declarations and definitions from tty.h 2006-07-10 13:24:16 -07:00
perf.c [PATCH] mark struct file_operations const 2 2007-02-12 09:48:44 -08:00
perf_asm.S [PARISC] more ENTRY(), ENDPROC(), END() conversions 2007-02-17 01:16:12 -05:00
perf_images.h [PARISC] Use kzalloc and other janitor-style cleanups 2006-01-22 20:26:31 -05:00
process.c [PARISC] use CONFIG_64BIT instead of __LP64__ 2007-02-17 01:16:40 -05:00
processor.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
ptrace.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
real2.S [PARISC] more ENTRY(), ENDPROC(), END() conversions 2007-02-17 01:16:12 -05:00
semaphore.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
setup.c [PARISC] Remove __read_mostly annotation from command_line 2007-02-26 20:08:46 -05:00
signal.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
signal32.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
signal32.h [PARISC] Arch-specific compat signals 2006-01-22 20:57:42 -05:00
smp.c [PARISC] clocksource: Move update_cr16_clocksource later in boot 2007-02-26 22:21:22 -05:00
sys32.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sys_parisc.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
sys_parisc32.c [PATCH] Common compat_sys_sysinfo 2007-02-11 10:51:32 -08:00
syscall.S [PARISC] add ASM_EXCEPTIONTABLE_ENTRY() macro 2007-02-17 01:16:26 -05:00
syscall_table.S Merge master.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6 2007-02-26 12:48:06 -08:00
time.c [PARISC] clocksource: Move update_cr16_clocksource later in boot 2007-02-26 22:21:22 -05:00
topology.c Replace remaining references to "driverfs" with "sysfs". 2007-02-17 19:13:42 +01:00
traps.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
unaligned.c [PARISC] add ASM_EXCEPTIONTABLE_ENTRY() macro 2007-02-17 01:16:26 -05:00
unwind.c Simplify kallsyms_lookup() 2007-05-08 11:15:08 -07:00
vmlinux.lds.S [PATCH] x86: Allow percpu variables to be page-aligned 2007-05-02 19:27:12 +02:00