diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index 3c675df..f1ad9bc 100644 --- a/sys/dev/acpica/acpi_cpu.c +++ b/sys/dev/acpica/acpi_cpu.c @@ -724,8 +724,19 @@ acpi_cpu_cx_cst(struct acpi_cpu_softc *sc) sc->cpu_cx_count++; } } - AcpiOsFree(buf.Pointer); + if (sc->cpu_cx_count > 0 && sc->cpu_cx_states[0].type != ACPI_STATE_C1) { + memmove(&sc->cpu_cx_states[1], &sc->cpu_cx_states[0], + sc->cpu_cx_count * sizeof(sc->cpu_cx_states[0])); + sc->cpu_cx_states[0].type = ACPI_STATE_C1; + sc->cpu_cx_states[0].trans_lat = 0; + sc->cpu_cx_states[0].power = 0; + sc->cpu_cx_states[0].p_lvlx = NULL; + sc->cpu_cx_states[0].res_type = 0; + sc->cpu_cx_count++; + } + + AcpiOsFree(buf.Pointer); return (0); }