mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
62fad4a13f
commit
2880646d24
1 changed files with 6 additions and 0 deletions
|
|
@ -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 a new issue