1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-21 15:45:02 +00:00

acpi_cpu_cx_cst: consistently use cpu_cx_count during state enumeration

cpu_cx_count is an index into accepted states, while i is an index into
original _CST states

MFC after:	1 week
This commit is contained in:
Andriy Gapon 2012-07-07 07:59:14 +00:00
parent 373ca4ed22
commit 56101001b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238192

View File

@ -746,13 +746,13 @@ acpi_cpu_cx_cst(struct acpi_cpu_softc *sc)
/* This is the first C1 state. Use the reserved slot. */
sc->cpu_cx_states[0] = *cx_ptr;
} else {
sc->cpu_non_c3 = i;
sc->cpu_non_c3 = sc->cpu_cx_count;
cx_ptr++;
sc->cpu_cx_count++;
}
continue;
case ACPI_STATE_C2:
sc->cpu_non_c3 = i;
sc->cpu_non_c3 = sc->cpu_cx_count;
break;
case ACPI_STATE_C3:
default: