Eliminate duplicate p-states entries

Reported and tested by:	ales dot rom at kabelnet dot net
Reviewed by:	njl
Approved by:	njl, imp (mentor)
MFC after:	3 days
This commit is contained in:
bruno 2006-07-15 17:34:03 +00:00
parent 0eacf9737c
commit 7e06df2baf

View File

@ -299,6 +299,12 @@ acpi_perf_evaluate(device_t dev)
sc->px_states[count].core_freq >= 0xffff)
continue;
/* Check for duplicate entries */
if (count > 0 &&
sc->px_states[count - 1].core_freq ==
sc->px_states[count].core_freq)
continue;
count++;
}
sc->px_count = count;