kernel-ark/drivers/char
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
..
agp Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
drm Fix occurrences of "the the " 2007-05-09 08:57:56 +02:00
hw_random pasemi: hardware rng driver 2007-05-09 12:30:49 -07:00
ip2
ipmi Revert "ipmi: add new IPMI nmi watchdog handling" 2007-05-14 15:24:24 -07:00
mwave
pcmcia Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial 2007-05-09 12:54:17 -07:00
rio Overrun in drivers/char/rio/riocmd.c 2007-05-11 08:29:34 -07:00
tpm Missing include file in tpm_atmel.h 2007-05-12 10:55:39 -07:00
watchdog [POWERPC] Fix comment in booke_wdt 2007-05-17 21:10:15 +10:00
.gitignore
amiserial.c drivers/char: use __set_current_state() 2007-05-08 11:15:13 -07:00
apm-emulation.c
applicom.c
applicom.h
briq_panel.c
cd1865.h
ChangeLog
consolemap.c console UTF-8 fixes 2007-05-08 11:15:12 -07:00
cp437.uni
cs5535_gpio.c Char: cs5535_gpio, add MODULE_DEVICE_TABLE 2007-05-08 11:15:04 -07:00
cyclades.c Char: cyclades, copyright and version changes 2007-05-08 11:15:25 -07:00
decserial.c
defkeymap.c_shipped
defkeymap.map
digi1.h
digiFep1.h
digiPCI.h
ds1286.c
ds1302.c
ds1620.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
dsp56k.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
dtlk.c dtlk: fix error checks in module_init() 2007-05-08 11:15:09 -07:00
ec3104_keyb.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
efirtc.c
epca.c drivers/char: use __set_current_state() 2007-05-08 11:15:13 -07:00
epca.h
epcaconfig.h
esp.c
generic_nvram.c
generic_serial.c
genrtc.c Correct comments in genrtc.c to refer to correct /proc file. 2007-05-09 07:21:11 +02:00
hangcheck-timer.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
hpet.c
hvc_beat.c
hvc_console.c drivers/char/hvc_console.c: cleanups 2007-05-08 11:14:59 -07:00
hvc_console.h
hvc_iseries.c [POWERPC] Rename device_is_compatible to of_device_is_compatible 2007-05-07 20:31:14 +10:00
hvc_rtas.c
hvc_vio.c [POWERPC] Rename device_is_compatible to of_device_is_compatible 2007-05-07 20:31:14 +10:00
hvcs.c
hvsi.c
i8k.c i386: sched.h inclusion from module.h is baack 2007-05-08 11:15:08 -07:00
ip27-rtc.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
isicom.c Char: isicom, use pr_debug 2007-05-08 11:15:24 -07:00
istallion.c
Kconfig [S390] Kconfig: use common Kconfig files for s390. 2007-05-10 15:46:08 +02:00
keyboard.c SPIN_LOCK_UNLOCKED cleanup in drivers/char/keyboard 2007-05-08 11:15:11 -07:00
lcd.c
lcd.h
lp.c ROUND_UP macro cleanup in drivers/char/lp.c 2007-05-08 11:15:08 -07:00
Makefile rename TANBAC TB0219 config 2007-05-07 12:13:04 -07:00
mbcs.c
mbcs.h
mem.c Make /dev/port conditional on config symbol 2007-05-08 11:15:07 -07:00
misc.c use mutex instead of semaphore for misc char devices 2007-05-08 11:15:15 -07:00
mmtimer.c [IA64-SN2][KJ] mmtimer.c-kzalloc 2007-05-08 11:53:27 -07:00
moxa.c old buffer overflow in moxa driver 2007-05-08 11:15:14 -07:00
mspec.c
mxser_new.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
mxser_new.h
mxser.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
mxser.h
n_hdlc.c
n_r3964.c drivers/char: use __set_current_state() 2007-05-08 11:15:13 -07:00
n_tty.c tty: add compat_ioctl 2007-05-11 08:29:35 -07:00
nsc_gpio.c
nvram.c
nwbutton.c
nwbutton.h
nwflash.c
pc8736x_gpio.c
ppdev.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
pty.c
random.c
raw.c
riscom8_reg.h
riscom8.c drivers/char: use __set_current_state() 2007-05-08 11:15:13 -07:00
riscom8.h
rocket_int.h Kill unused sesssion and group values in rocket driver 2007-05-11 08:29:36 -07:00
rocket.c Kill unused sesssion and group values in rocket driver 2007-05-11 08:29:36 -07:00
rocket.h
rtc.c drivers/char: use __set_current_state() 2007-05-08 11:15:13 -07:00
scc.h
scx200_gpio.c
selection.c drivers/char: use __set_current_state() 2007-05-08 11:15:13 -07:00
ser_a2232.c
ser_a2232.h
ser_a2232fw.ax
ser_a2232fw.h
serial167.c drivers/char: use __set_current_state() 2007-05-08 11:15:13 -07:00
snsc_event.c [IA64] drivers/char/snsc_event.c:206: warning: unused variable `p' 2007-05-10 13:23:05 -07:00
snsc.c
snsc.h
sonypi.c
specialix_io8.h
specialix.c
stallion.c
sx.c
sx.h
sxboards.h
sxwindow.h
synclink_gt.c synclink_gt: add compat_ioctl 2007-05-11 08:29:34 -07:00
synclink.c drivers/char/synclink.c: check kmalloc() return value 2007-05-08 11:15:02 -07:00
synclinkmp.c
sysrq.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
tb0219.c
tipar.c layered parport code uses parport->dev 2007-05-08 11:15:05 -07:00
tlclk.c
toshiba.c
tty_io.c tty: flush flip buffer on ldisc input queue flush 2007-05-12 10:55:39 -07:00
tty_ioctl.c
vc_screen.c use mutex instead of semaphore in virtual console driver 2007-05-08 11:15:33 -07:00
viocons.c
viotape.c
vme_scc.c
vr41xx_giu.c
vt_ioctl.c drivers/char: use __set_current_state() 2007-05-08 11:15:13 -07:00
vt.c use mutex instead of semaphore in virtual console driver 2007-05-08 11:15:33 -07:00