Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/powerpc/mp_machdep.c
Show First 20 Lines • Show All 180 Lines • ▼ Show 20 Lines | if (cpu.cr_cpuid != bsp.cr_cpuid) { | ||||
pc->pc_cpuid = bsp.cr_cpuid; | pc->pc_cpuid = bsp.cr_cpuid; | ||||
pc->pc_bsp = 1; | pc->pc_bsp = 1; | ||||
} | } | ||||
pc->pc_hwref = cpu.cr_hwref; | pc->pc_hwref = cpu.cr_hwref; | ||||
CPU_SET(pc->pc_cpuid, &all_cpus); | CPU_SET(pc->pc_cpuid, &all_cpus); | ||||
next: | next: | ||||
error = platform_smp_next_cpu(&cpu); | error = platform_smp_next_cpu(&cpu); | ||||
} | } | ||||
#ifdef SMP | |||||
/* Probe mp_ncores and smp_threads_per_core as a side effect. */ | |||||
(void)cpu_topo(); | |||||
#endif | |||||
} | } | ||||
void | void | ||||
cpu_mp_announce(void) | cpu_mp_announce(void) | ||||
{ | { | ||||
struct pcpu *pc; | struct pcpu *pc; | ||||
int i; | int i; | ||||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |