aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig26
-rw-r--r--init/main.c7
2 files changed, 18 insertions, 15 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 0aa6579504cc..09c5c6431f42 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -921,6 +921,11 @@ config HAVE_PERF_EVENTS
921 help 921 help
922 See tools/perf/design.txt for details. 922 See tools/perf/design.txt for details.
923 923
924config PERF_USE_VMALLOC
925 bool
926 help
927 See tools/perf/design.txt for details
928
924menu "Kernel Performance Events And Counters" 929menu "Kernel Performance Events And Counters"
925 930
926config PERF_EVENTS 931config PERF_EVENTS
@@ -976,6 +981,19 @@ config PERF_COUNTERS
976 981
977 Say N if unsure. 982 Say N if unsure.
978 983
984config DEBUG_PERF_USE_VMALLOC
985 default n
986 bool "Debug: use vmalloc to back perf mmap() buffers"
987 depends on PERF_EVENTS && DEBUG_KERNEL
988 select PERF_USE_VMALLOC
989 help
990 Use vmalloc memory to back perf mmap() buffers.
991
992 Mostly useful for debugging the vmalloc code on platforms
993 that don't require it.
994
995 Say N if unsure.
996
979endmenu 997endmenu
980 998
981config VM_EVENT_COUNTERS 999config VM_EVENT_COUNTERS
@@ -1006,14 +1024,6 @@ config SLUB_DEBUG
1006 SLUB sysfs support. /sys/slab will not exist and there will be 1024 SLUB sysfs support. /sys/slab will not exist and there will be
1007 no support for cache validation etc. 1025 no support for cache validation etc.
1008 1026
1009config STRIP_ASM_SYMS
1010 bool "Strip assembler-generated symbols during link"
1011 default n
1012 help
1013 Strip internal assembler-generated symbols during a link (symbols
1014 that look like '.Lxxx') so they don't pollute the output of
1015 get_wchan() and suchlike.
1016
1017config COMPAT_BRK 1027config COMPAT_BRK
1018 bool "Disable heap randomization" 1028 bool "Disable heap randomization"
1019 default y 1029 default y
diff --git a/init/main.c b/init/main.c
index 6107223124e4..5988debfc505 100644
--- a/init/main.c
+++ b/init/main.c
@@ -18,7 +18,6 @@
18#include <linux/string.h> 18#include <linux/string.h>
19#include <linux/ctype.h> 19#include <linux/ctype.h>
20#include <linux/delay.h> 20#include <linux/delay.h>
21#include <linux/utsname.h>
22#include <linux/ioport.h> 21#include <linux/ioport.h>
23#include <linux/init.h> 22#include <linux/init.h>
24#include <linux/smp_lock.h> 23#include <linux/smp_lock.h>
@@ -360,11 +359,6 @@ static inline void smp_prepare_cpus(unsigned int maxcpus) { }
360 359
361#else 360#else
362 361
363#if NR_CPUS > BITS_PER_LONG
364cpumask_t cpu_mask_all __read_mostly = CPU_MASK_ALL;
365EXPORT_SYMBOL(cpu_mask_all);
366#endif
367
368/* Setup number of possible processor ids */ 362/* Setup number of possible processor ids */
369int nr_cpu_ids __read_mostly = NR_CPUS; 363int nr_cpu_ids __read_mostly = NR_CPUS;
370EXPORT_SYMBOL(nr_cpu_ids); 364EXPORT_SYMBOL(nr_cpu_ids);
@@ -784,7 +778,6 @@ static void __init do_initcalls(void)
784 */ 778 */
785static void __init do_basic_setup(void) 779static void __init do_basic_setup(void)
786{ 780{
787 rcu_init_sched(); /* needed by module_init stage. */
788 init_workqueues(); 781 init_workqueues();
789 cpuset_init_smp(); 782 cpuset_init_smp();
790 usermodehelper_init(); 783 usermodehelper_init();