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
..
2007-05-02 19:27:04 +02:00
2007-05-02 19:27:04 +02:00
2007-05-02 19:27:08 +02:00
2007-05-02 19:27:04 +02:00
2007-05-02 19:27:04 +02:00
2007-05-02 19:27:08 +02:00
2007-05-02 19:27:04 +02:00
2007-02-16 08:13:59 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-02-13 00:09:13 -05:00
2007-04-26 14:22:50 -04:00
2006-10-04 03:38:54 -04:00
2007-05-11 08:29:32 -07:00
2007-05-02 19:27:17 +02:00
2006-04-01 22:50:03 -05:00
2006-10-05 15:10:12 +01:00
2007-05-08 11:15:20 -07:00
2005-09-07 16:57:21 -07:00
2007-05-09 07:14:03 +02:00
2007-05-09 07:14:03 +02:00
2006-12-08 08:28:39 -08:00
2007-05-02 19:27:16 +02:00
2006-04-26 12:56:16 +01:00
2006-04-26 12:56:16 +01:00
2006-12-13 09:27:08 -08:00
2006-12-02 21:23:19 -08:00
2007-05-08 11:15:20 -07:00
2006-12-07 02:14:10 +01:00
2007-05-02 19:27:20 +02:00
2005-04-16 15:20:36 -07:00
2007-05-02 19:27:16 +02:00
2005-04-16 15:20:36 -07:00
2007-03-05 07:57:52 -08:00
2007-05-02 19:27:15 +02:00
2006-12-01 14:52:01 -08:00
2007-04-25 22:23:33 -07:00
2006-12-07 08:39:41 -08:00
2006-04-26 12:56:16 +01:00
2006-03-25 09:10:55 -08:00
2006-09-26 10:52:41 +02:00
2007-05-02 19:27:11 +02:00
2006-01-18 19:20:31 -08:00
2007-05-08 11:15:08 -07:00
2005-07-26 14:35:42 -07:00
2005-04-16 15:20:36 -07:00
2005-09-07 16:57:38 -07:00
2007-05-02 19:27:13 +02:00
2006-10-05 15:10:12 +01:00
2006-10-04 03:38:54 -04:00
2006-12-07 08:39:21 -08:00
2007-05-02 19:27:04 +02:00
2006-04-26 12:56:16 +01:00
2007-05-02 19:27:15 +02:00
2007-05-02 19:27:04 +02:00
2006-10-08 12:24:02 -07:00
2006-10-04 07:55:29 -07:00
2007-05-02 19:27:21 +02:00
2007-02-16 08:13:59 -08:00
2005-04-16 15:20:36 -07:00
2006-12-08 08:29:03 -08:00
2006-09-26 10:52:27 +02:00
2007-03-05 07:57:50 -08:00
2007-05-02 19:27:10 +02:00
2006-01-10 08:01:34 -08:00
2007-05-08 11:15:03 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-05-02 19:27:16 +02:00
2007-05-02 19:27:04 +02:00
2007-05-02 19:27:10 +02:00
2005-04-16 15:20:36 -07:00
2006-06-26 10:48:15 -07:00
2007-05-02 19:27:12 +02:00
2007-05-14 15:24:24 -07:00
2007-05-08 11:15:07 -07:00
2006-04-26 12:56:16 +01:00
2006-07-31 13:28:38 -07:00
2005-04-16 15:20:36 -07:00
2005-05-26 16:16:16 -07:00
2007-05-08 11:15:20 -07:00
2006-12-07 02:14:03 +01:00
2005-04-16 15:20:36 -07:00
2006-10-03 08:03:41 -07:00
2005-04-16 15:20:36 -07:00
2007-02-13 13:26:26 +01:00
2006-02-15 15:32:22 -08:00
2007-05-02 19:27:14 +02:00
2006-06-27 17:32:38 -07:00
2005-04-16 15:20:36 -07:00
2007-05-09 12:30:57 -07:00
2007-05-02 19:27:05 +02:00
2006-12-07 02:14:19 +01:00
2007-02-16 08:13:59 -08:00
2005-04-16 15:20:36 -07:00
2006-10-04 07:55:28 -07:00
2007-05-02 19:27:17 +02:00
2007-05-09 12:49:33 -07:00
2007-05-02 19:27:17 +02:00
2006-09-26 10:52:31 +02:00
2005-04-16 15:20:36 -07:00
2007-05-02 19:27:20 +02:00
2005-09-12 10:49:57 -07:00
2005-04-16 15:20:36 -07:00
2007-05-02 19:27:13 +02:00
2006-12-07 08:39:46 -08:00
2007-05-10 09:26:53 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-04-26 12:56:16 +01:00
2007-05-02 19:27:16 +02:00
2007-05-12 11:26:22 -07:00
2007-05-02 19:27:13 +02:00
2007-05-02 19:27:19 +02:00
2007-05-02 19:27:13 +02:00
2007-05-02 19:27:19 +02:00
2007-05-12 11:26:22 -07:00
2007-05-11 08:29:34 -07:00
2006-07-08 15:24:18 -07:00
2007-05-02 19:27:12 +02:00
2007-05-15 08:54:00 -07:00
2006-09-26 08:49:10 -07:00
2007-02-13 13:26:21 +01:00
2007-05-02 19:27:06 +02:00
2007-05-02 19:27:11 +02:00
2007-05-02 19:27:20 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-09-26 10:52:32 +02:00
2006-12-07 08:39:36 -08:00
2007-05-02 19:02:34 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-05-02 19:27:16 +02:00
2006-09-27 14:39:51 -07:00
2005-04-16 15:20:36 -07:00
2007-05-08 11:15:23 -07:00
2007-02-13 13:26:26 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-09-13 07:32:15 -07:00
2007-05-09 12:30:48 -07:00
2007-04-25 22:24:21 -07:00
2007-04-25 22:24:04 -07:00
2005-06-23 09:45:05 -07:00
2006-12-06 14:39:53 -08:00
2006-12-07 02:14:08 +01:00
2005-04-16 15:20:36 -07:00
2006-09-26 10:52:34 +02:00
2006-03-26 08:57:00 -08:00
2005-04-16 15:20:36 -07:00
2006-04-26 12:56:16 +01:00
2006-12-07 08:59:11 -08:00
2007-05-09 07:14:03 +02:00
2007-05-08 11:15:20 -07:00
2007-05-08 11:15:03 -07:00
2007-05-08 11:15:03 -07:00
2006-09-26 10:52:42 +02:00
2007-05-09 12:30:56 -07:00
2007-03-05 07:57:52 -08:00
2007-05-02 19:27:05 +02:00
2006-06-26 09:58:21 -07:00
2005-04-16 15:20:36 -07:00
2007-05-21 09:18:19 -07:00
2007-03-05 07:57:51 -08:00
2007-05-11 08:29:32 -07:00
2006-12-04 19:41:15 -08:00
2007-05-02 19:27:06 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-05-11 08:29:37 -07:00
2006-12-15 08:47:51 -08:00
2005-04-16 15:20:36 -07:00
2006-06-22 15:05:58 -07:00
2006-10-12 22:25:03 -05:00
2006-12-07 02:14:03 +01:00
2007-05-02 19:27:16 +02:00
2007-03-05 07:57:52 -08:00
2007-05-01 10:09:29 -05:00
2005-09-05 00:06:11 -07:00