diff options
author | Tejun Heo <tj@kernel.org> | 2009-08-14 01:41:02 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-08-14 01:45:31 -0400 |
commit | 384be2b18a5f9475eab9ca2bdfa95cc1a04ef59c (patch) | |
tree | 04c93f391a1b65c8bf8d7ba8643c07d26c26590a /init | |
parent | a76761b621bcd8336065c4fe3a74f046858bc34c (diff) | |
parent | 142d44b0dd6741a64a7bdbe029110e7c1dcf1d23 (diff) |
Merge branch 'percpu-for-linus' into percpu-for-next
Conflicts:
arch/sparc/kernel/smp_64.c
arch/x86/kernel/cpu/perf_counter.c
arch/x86/kernel/setup_percpu.c
drivers/cpufreq/cpufreq_ondemand.c
mm/percpu.c
Conflicts in core and arch percpu codes are mostly from commit
ed78e1e078dd44249f88b1dd8c76dafb39567161 which substituted many
num_possible_cpus() with nr_cpu_ids. As for-next branch has moved all
the first chunk allocators into mm/percpu.c, the changes are moved
from arch code to mm/percpu.c.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 13 | ||||
-rw-r--r-- | init/main.c | 2 |
2 files changed, 12 insertions, 3 deletions
diff --git a/init/Kconfig b/init/Kconfig index 1ce05a4cb5f6..3f7e60995c80 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -940,6 +940,7 @@ menu "Performance Counters" | |||
940 | 940 | ||
941 | config PERF_COUNTERS | 941 | config PERF_COUNTERS |
942 | bool "Kernel Performance Counters" | 942 | bool "Kernel Performance Counters" |
943 | default y if PROFILING | ||
943 | depends on HAVE_PERF_COUNTERS | 944 | depends on HAVE_PERF_COUNTERS |
944 | select ANON_INODES | 945 | select ANON_INODES |
945 | help | 946 | help |
@@ -961,9 +962,17 @@ config PERF_COUNTERS | |||
961 | Say Y if unsure. | 962 | Say Y if unsure. |
962 | 963 | ||
963 | config EVENT_PROFILE | 964 | config EVENT_PROFILE |
964 | bool "Tracepoint profile sources" | 965 | bool "Tracepoint profiling sources" |
965 | depends on PERF_COUNTERS && EVENT_TRACER | 966 | depends on PERF_COUNTERS && EVENT_TRACING |
966 | default y | 967 | default y |
968 | help | ||
969 | Allow the use of tracepoints as software performance counters. | ||
970 | |||
971 | When this is enabled, you can create perf counters based on | ||
972 | tracepoints using PERF_TYPE_TRACEPOINT and the tracepoint ID | ||
973 | found in debugfs://tracing/events/*/*/id. (The -e/--events | ||
974 | option to the perf tool can parse and interpret symbolic | ||
975 | tracepoints, in the subsystem:tracepoint_name format.) | ||
967 | 976 | ||
968 | endmenu | 977 | endmenu |
969 | 978 | ||
diff --git a/init/main.c b/init/main.c index 71832858c5a2..2f9544d8435a 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -560,8 +560,8 @@ asmlinkage void __init start_kernel(void) | |||
560 | setup_arch(&command_line); | 560 | setup_arch(&command_line); |
561 | mm_init_owner(&init_mm, &init_task); | 561 | mm_init_owner(&init_mm, &init_task); |
562 | setup_command_line(command_line); | 562 | setup_command_line(command_line); |
563 | setup_per_cpu_areas(); | ||
564 | setup_nr_cpu_ids(); | 563 | setup_nr_cpu_ids(); |
564 | setup_per_cpu_areas(); | ||
565 | smp_prepare_boot_cpu(); /* arch-specific boot-cpu hooks */ | 565 | smp_prepare_boot_cpu(); /* arch-specific boot-cpu hooks */ |
566 | 566 | ||
567 | build_all_zonelists(); | 567 | build_all_zonelists(); |