diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2008-10-16 01:05:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 14:21:51 -0400 |
commit | ebf3f09c634906d371f2bfd71b41c7e0c52efe7e (patch) | |
tree | 4205040f47fba2675dc4c6b1407d15c9d6f8b355 /kernel | |
parent | d8273674721faaf84bec2190c0c7a82972b37f73 (diff) |
Configure out AIO support
This patchs adds the CONFIG_AIO option which allows to remove support
for asynchronous I/O operations, that are not necessarly used by
applications, particularly on embedded devices. As this is a
size-reduction option, it depends on CONFIG_EMBEDDED. It allows to
save ~7 kilobytes of kernel code/data:
text data bss dec hex filename
1115067 119180 217088 1451335 162547 vmlinux
1108025 119048 217088 1444161 160941 vmlinux.new
-7042 -132 0 -7174 -1C06 +/-
This patch has been originally written by Matt Mackall
<mpm@selenic.com>, and is part of the Linux Tiny project.
[randy.dunlap@oracle.com: build fix]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Cc: Zach Brown <zach.brown@oracle.com>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sys_ni.c | 5 | ||||
-rw-r--r-- | kernel/sysctl.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/kernel/sys_ni.c b/kernel/sys_ni.c index 503d8d4eb80a..a77b27b11b04 100644 --- a/kernel/sys_ni.c +++ b/kernel/sys_ni.c | |||
@@ -126,6 +126,11 @@ cond_syscall(sys_vm86); | |||
126 | cond_syscall(compat_sys_ipc); | 126 | cond_syscall(compat_sys_ipc); |
127 | cond_syscall(compat_sys_sysctl); | 127 | cond_syscall(compat_sys_sysctl); |
128 | cond_syscall(sys_flock); | 128 | cond_syscall(sys_flock); |
129 | cond_syscall(sys_io_setup); | ||
130 | cond_syscall(sys_io_destroy); | ||
131 | cond_syscall(sys_io_submit); | ||
132 | cond_syscall(sys_io_cancel); | ||
133 | cond_syscall(sys_io_getevents); | ||
129 | 134 | ||
130 | /* arch-specific weak syscall entries */ | 135 | /* arch-specific weak syscall entries */ |
131 | cond_syscall(sys_pciconfig_read); | 136 | cond_syscall(sys_pciconfig_read); |
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 9792c315676a..617d41e4d6a0 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -1281,6 +1281,7 @@ static struct ctl_table fs_table[] = { | |||
1281 | .extra2 = &two, | 1281 | .extra2 = &two, |
1282 | }, | 1282 | }, |
1283 | #endif | 1283 | #endif |
1284 | #ifdef CONFIG_AIO | ||
1284 | { | 1285 | { |
1285 | .procname = "aio-nr", | 1286 | .procname = "aio-nr", |
1286 | .data = &aio_nr, | 1287 | .data = &aio_nr, |
@@ -1295,6 +1296,7 @@ static struct ctl_table fs_table[] = { | |||
1295 | .mode = 0644, | 1296 | .mode = 0644, |
1296 | .proc_handler = &proc_doulongvec_minmax, | 1297 | .proc_handler = &proc_doulongvec_minmax, |
1297 | }, | 1298 | }, |
1299 | #endif /* CONFIG_AIO */ | ||
1298 | #ifdef CONFIG_INOTIFY_USER | 1300 | #ifdef CONFIG_INOTIFY_USER |
1299 | { | 1301 | { |
1300 | .ctl_name = FS_INOTIFY, | 1302 | .ctl_name = FS_INOTIFY, |