Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/acpica/acpi_cpu.c
Show First 20 Lines • Show All 460 Lines • ▼ Show 20 Lines | disable_idle(struct acpi_cpu_softc *sc) | ||||
/* | /* | ||||
* Ensure that the CPU is not in idle state or in acpi_cpu_idle(). | * Ensure that the CPU is not in idle state or in acpi_cpu_idle(). | ||||
* Note that this code depends on the fact that the rendezvous IPI | * Note that this code depends on the fact that the rendezvous IPI | ||||
* can not penetrate context where interrupts are disabled and acpi_cpu_idle | * can not penetrate context where interrupts are disabled and acpi_cpu_idle | ||||
* is called and executed in such a context with interrupts being re-enabled | * is called and executed in such a context with interrupts being re-enabled | ||||
* right before return. | * right before return. | ||||
*/ | */ | ||||
smp_rendezvous_cpus(cpuset, smp_no_rendevous_barrier, NULL, | smp_rendezvous_cpus(cpuset, smp_no_rendezvous_barrier, NULL, | ||||
smp_no_rendevous_barrier, NULL); | smp_no_rendezvous_barrier, NULL); | ||||
} | } | ||||
static void | static void | ||||
enable_idle(struct acpi_cpu_softc *sc) | enable_idle(struct acpi_cpu_softc *sc) | ||||
{ | { | ||||
sc->cpu_disable_idle = FALSE; | sc->cpu_disable_idle = FALSE; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,051 Lines • Show Last 20 Lines |