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