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