From dd1b5113dd091b2e81344598d67ce624af98ba91 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 28 Jun 2024 23:21:08 -0700 Subject: [PATCH] feat(power-management-core): fix up performance core heuristic Signed-off-by: Ariadne Conill --- crates/runtime/src/power.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/runtime/src/power.rs b/crates/runtime/src/power.rs index f43f22b..055a837 100644 --- a/crates/runtime/src/power.rs +++ b/crates/runtime/src/power.rs @@ -44,7 +44,7 @@ fn labelled_topo(input: &[SysctlCputopo]) -> Vec { 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(list) = cores.get_mut(&(last.core, last.socket, last.node)) { for other in list {