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:
parent
0eacf9737c
commit
7e06df2baf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user