diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-28 12:05:35 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-28 12:05:35 -0400 |
| commit | d9089c296bdd82e6c1b7f82d04c11b5decde75e7 (patch) | |
| tree | 6c2a3b8bc1b6f8b5930f6a20b099511dd19aa4ba /arch/powerpc/kernel/setup-common.c | |
| parent | bda426f5310ffddcd463fe20f352609e84989514 (diff) | |
| parent | 00df438e89a9003895948170e1abf64dd4665872 (diff) | |
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (25 commits)
powerpc: Disable 64K hugetlb support when doing 64K SPU mappings
powerpc/powermac: Fixup default serial port device for pmac_zilog
powerpc/powermac: Use sane default baudrate for SCC debugging
powerpc/mm: Implement _PAGE_SPECIAL & pte_special() for 64-bit
powerpc: Show processor cache information in sysfs
powerpc: Make core id information available to userspace
powerpc: Make core sibling information available to userspace
powerpc/vio: More fallout from dma_mapping_error API change
ibmveth: Fix multiple errors with dma_mapping_error conversion
powerpc/pseries: Fix CMO sysdev attribute API change fallout
powerpc: Enable tracehook for the architecture
powerpc: Add TIF_NOTIFY_RESUME support for tracehook
powerpc: Add asm/syscall.h with the tracehook entry points
powerpc: Make syscall tracing use tracehook.h helpers
powerpc: Call tracehook_signal_handler() when setting up signal frames
powerpc: Update cpu_sibling_maps dynamically
powerpc: register_cpu_online should be __cpuinit
powerpc: kill useless SMT code in prom_hold_cpus
powerpc: Fix 8xx build failure
powerpc: Fix vio build warnings
...
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
| -rw-r--r-- | arch/powerpc/kernel/setup-common.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 61a3f4132087..9cc5a52711e5 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c | |||
| @@ -367,7 +367,6 @@ static void __init cpu_init_thread_core_maps(int tpc) | |||
| 367 | * setup_cpu_maps - initialize the following cpu maps: | 367 | * setup_cpu_maps - initialize the following cpu maps: |
| 368 | * cpu_possible_map | 368 | * cpu_possible_map |
| 369 | * cpu_present_map | 369 | * cpu_present_map |
| 370 | * cpu_sibling_map | ||
| 371 | * | 370 | * |
| 372 | * Having the possible map set up early allows us to restrict allocations | 371 | * Having the possible map set up early allows us to restrict allocations |
| 373 | * of things like irqstacks to num_possible_cpus() rather than NR_CPUS. | 372 | * of things like irqstacks to num_possible_cpus() rather than NR_CPUS. |
| @@ -475,29 +474,6 @@ void __init smp_setup_cpu_maps(void) | |||
| 475 | */ | 474 | */ |
| 476 | cpu_init_thread_core_maps(nthreads); | 475 | cpu_init_thread_core_maps(nthreads); |
| 477 | } | 476 | } |
| 478 | |||
| 479 | /* | ||
| 480 | * Being that cpu_sibling_map is now a per_cpu array, then it cannot | ||
| 481 | * be initialized until the per_cpu areas have been created. This | ||
| 482 | * function is now called from setup_per_cpu_areas(). | ||
| 483 | */ | ||
| 484 | void __init smp_setup_cpu_sibling_map(void) | ||
| 485 | { | ||
| 486 | #ifdef CONFIG_PPC64 | ||
| 487 | int i, cpu, base; | ||
| 488 | |||
| 489 | for_each_possible_cpu(cpu) { | ||
| 490 | DBG("Sibling map for CPU %d:", cpu); | ||
| 491 | base = cpu_first_thread_in_core(cpu); | ||
| 492 | for (i = 0; i < threads_per_core; i++) { | ||
| 493 | cpu_set(base + i, per_cpu(cpu_sibling_map, cpu)); | ||
| 494 | DBG(" %d", base + i); | ||
| 495 | } | ||
| 496 | DBG("\n"); | ||
| 497 | } | ||
| 498 | |||
| 499 | #endif /* CONFIG_PPC64 */ | ||
| 500 | } | ||
| 501 | #endif /* CONFIG_SMP */ | 477 | #endif /* CONFIG_SMP */ |
| 502 | 478 | ||
| 503 | #ifdef CONFIG_PCSPKR_PLATFORM | 479 | #ifdef CONFIG_PCSPKR_PLATFORM |
