Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/xen/control/control.c
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | |||||
#include <sys/eventhandler.h> | #include <sys/eventhandler.h> | ||||
#include <sys/timetc.h> | #include <sys/timetc.h> | ||||
#include <geom/geom.h> | #include <geom/geom.h> | ||||
#include <machine/_inttypes.h> | #include <machine/_inttypes.h> | ||||
#include <machine/intr_machdep.h> | #include <machine/intr_machdep.h> | ||||
#if defined(__amd64__) || defined(__i386__) | |||||
#include <x86/apicvar.h> | #include <x86/apicvar.h> | ||||
#endif | |||||
#include <vm/vm.h> | #include <vm/vm.h> | ||||
#include <vm/vm_extern.h> | #include <vm/vm_extern.h> | ||||
#include <vm/vm_kern.h> | #include <vm/vm_kern.h> | ||||
#include <xen/xen-os.h> | #include <xen/xen-os.h> | ||||
#include <xen/blkif.h> | #include <xen/blkif.h> | ||||
#include <xen/evtchn.h> | #include <xen/evtchn.h> | ||||
▲ Show 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | |||||
#ifdef SMP | #ifdef SMP | ||||
if (!CPU_EMPTY(&cpu_suspend_map)) { | if (!CPU_EMPTY(&cpu_suspend_map)) { | ||||
/* | /* | ||||
* Now that event channels have been initialized, | * Now that event channels have been initialized, | ||||
* resume CPUs. | * resume CPUs. | ||||
*/ | */ | ||||
resume_cpus(cpu_suspend_map); | resume_cpus(cpu_suspend_map); | ||||
#if defined(__amd64__) || defined(__i386__) | |||||
/* Send an IPI_BITMAP in case there are pending bitmap IPIs. */ | /* Send an IPI_BITMAP in case there are pending bitmap IPIs. */ | ||||
lapic_ipi_vectored(IPI_BITMAP_VECTOR, APIC_IPI_DEST_ALL); | lapic_ipi_vectored(IPI_BITMAP_VECTOR, APIC_IPI_DEST_ALL); | ||||
#endif | |||||
} | } | ||||
#endif | #endif | ||||
/* | /* | ||||
* FreeBSD really needs to add DEVICE_SUSPEND_CANCEL or | * FreeBSD really needs to add DEVICE_SUSPEND_CANCEL or | ||||
* similar. | * similar. | ||||
*/ | */ | ||||
DEVICE_RESUME(root_bus); | DEVICE_RESUME(root_bus); | ||||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |