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 /arch/sparc/kernel/smp_64.c | |
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 'arch/sparc/kernel/smp_64.c')
-rw-r--r-- | arch/sparc/kernel/smp_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/smp_64.c b/arch/sparc/kernel/smp_64.c index 6970333b48b8..9856d866b77b 100644 --- a/arch/sparc/kernel/smp_64.c +++ b/arch/sparc/kernel/smp_64.c | |||
@@ -1487,7 +1487,7 @@ void __init setup_per_cpu_areas(void) | |||
1487 | dyn_size = size_sum - static_size - PERCPU_MODULE_RESERVE; | 1487 | dyn_size = size_sum - static_size - PERCPU_MODULE_RESERVE; |
1488 | 1488 | ||
1489 | 1489 | ||
1490 | ptrs_size = PFN_ALIGN(num_possible_cpus() * sizeof(ptrs[0])); | 1490 | ptrs_size = PFN_ALIGN(nr_cpu_ids * sizeof(ptrs[0])); |
1491 | ptrs = alloc_bootmem(ptrs_size); | 1491 | ptrs = alloc_bootmem(ptrs_size); |
1492 | 1492 | ||
1493 | for_each_possible_cpu(cpu) { | 1493 | for_each_possible_cpu(cpu) { |
@@ -1502,7 +1502,7 @@ void __init setup_per_cpu_areas(void) | |||
1502 | 1502 | ||
1503 | /* allocate address and map */ | 1503 | /* allocate address and map */ |
1504 | vm.flags = VM_ALLOC; | 1504 | vm.flags = VM_ALLOC; |
1505 | vm.size = num_possible_cpus() * PCPU_CHUNK_SIZE; | 1505 | vm.size = nr_cpu_ids * PCPU_CHUNK_SIZE; |
1506 | vm_area_register_early(&vm, PCPU_CHUNK_SIZE); | 1506 | vm_area_register_early(&vm, PCPU_CHUNK_SIZE); |
1507 | 1507 | ||
1508 | for_each_possible_cpu(cpu) { | 1508 | for_each_possible_cpu(cpu) { |