Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/x86/cpu_machdep.c
Show First 20 Lines • Show All 469 Lines • ▼ Show 20 Lines | |||||
#ifdef SMP | #ifdef SMP | ||||
struct monitorbuf *mb; | struct monitorbuf *mb; | ||||
cpuset_t map; | cpuset_t map; | ||||
u_int cnt; | u_int cnt; | ||||
if (smp_started) { | if (smp_started) { | ||||
map = all_cpus; | map = all_cpus; | ||||
CPU_CLR(PCPU_GET(cpuid), &map); | CPU_CLR(PCPU_GET(cpuid), &map); | ||||
CPU_ANDNOT(&map, &stopped_cpus); | CPU_ANDNOT(&map, &map, &stopped_cpus); | ||||
if (!CPU_EMPTY(&map)) { | if (!CPU_EMPTY(&map)) { | ||||
printf("cpu_reset: Stopping other CPUs\n"); | printf("cpu_reset: Stopping other CPUs\n"); | ||||
stop_cpus(map); | stop_cpus(map); | ||||
} | } | ||||
if (PCPU_GET(cpuid) != 0) { | if (PCPU_GET(cpuid) != 0) { | ||||
cpu_reset_proxyid = PCPU_GET(cpuid); | cpu_reset_proxyid = PCPU_GET(cpuid); | ||||
cpustop_restartfunc = cpu_reset_proxy; | cpustop_restartfunc = cpu_reset_proxy; | ||||
▲ Show 20 Lines • Show All 1,040 Lines • Show Last 20 Lines |