feat(power-management-core): fix up performance core heuristic

Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
This commit is contained in:
Ariadne Conill 2024-06-28 23:21:08 -07:00
parent 56decdfe0e
commit dd1b5113dd

View File

@ -44,7 +44,7 @@ fn labelled_topo(input: &[SysctlCputopo]) -> Vec<CpuTopologyInfo> {
continue; continue;
} }
if last.map(|last| item.core == last.core + 4).unwrap_or(false) { // detect if performance cores seem to be kicking in. if last.map(|last| (item.core - last.core) >= 2).unwrap_or(false) { // detect if performance cores seem to be kicking in.
if let Some(last) = last { if let Some(last) = last {
if let Some(list) = cores.get_mut(&(last.core, last.socket, last.node)) { if let Some(list) = cores.get_mut(&(last.core, last.socket, last.node)) {
for other in list { for other in list {