aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig27
-rw-r--r--init/main.c4
2 files changed, 14 insertions, 17 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 11930fbb1e02..aa29b797ca2b 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -206,7 +206,7 @@ config HOTPLUG
206 outside the kernel tree does. Such modules require Y here. 206 outside the kernel tree does. Such modules require Y here.
207 207
208config KOBJECT_UEVENT 208config KOBJECT_UEVENT
209 bool "Kernel Userspace Events" 209 bool "Kernel Userspace Events" if EMBEDDED
210 depends on NET 210 depends on NET
211 default y 211 default y
212 help 212 help
@@ -256,6 +256,19 @@ config CPUSETS
256 256
257source "usr/Kconfig" 257source "usr/Kconfig"
258 258
259config CC_OPTIMIZE_FOR_SIZE
260 bool "Optimize for size (Look out for broken compilers!)"
261 default y
262 depends on ARM || H8300 || EXPERIMENTAL
263 help
264 Enabling this option will pass "-Os" instead of "-O2" to gcc
265 resulting in a smaller kernel.
266
267 WARNING: some versions of gcc may generate incorrect code with this
268 option. If problems are observed, a gcc upgrade may be needed.
269
270 If unsure, say N.
271
259menuconfig EMBEDDED 272menuconfig EMBEDDED
260 bool "Configure standard kernel features (for small systems)" 273 bool "Configure standard kernel features (for small systems)"
261 help 274 help
@@ -338,18 +351,6 @@ config EPOLL
338 Disabling this option will cause the kernel to be built without 351 Disabling this option will cause the kernel to be built without
339 support for epoll family of system calls. 352 support for epoll family of system calls.
340 353
341config CC_OPTIMIZE_FOR_SIZE
342 bool "Optimize for size" if EMBEDDED
343 default y if ARM || H8300
344 help
345 Enabling this option will pass "-Os" instead of "-O2" to gcc
346 resulting in a smaller kernel.
347
348 WARNING: some versions of gcc may generate incorrect code with this
349 option. If problems are observed, a gcc upgrade may be needed.
350
351 If unsure, say N.
352
353config SHMEM 354config SHMEM
354 bool "Use full shmem filesystem" if EMBEDDED 355 bool "Use full shmem filesystem" if EMBEDDED
355 default y 356 default y
diff --git a/init/main.c b/init/main.c
index 27f97f9b4636..54aaf561cf66 100644
--- a/init/main.c
+++ b/init/main.c
@@ -47,7 +47,6 @@
47#include <linux/rmap.h> 47#include <linux/rmap.h>
48#include <linux/mempolicy.h> 48#include <linux/mempolicy.h>
49#include <linux/key.h> 49#include <linux/key.h>
50#include <net/sock.h>
51 50
52#include <asm/io.h> 51#include <asm/io.h>
53#include <asm/bugs.h> 52#include <asm/bugs.h>
@@ -614,9 +613,6 @@ static void __init do_basic_setup(void)
614 sysctl_init(); 613 sysctl_init();
615#endif 614#endif
616 615
617 /* Networking initialization needs a process context */
618 sock_init();
619
620 do_initcalls(); 616 do_initcalls();
621} 617}
622 618