mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 05:10:55 +00:00
feat(power-management-core): fix up performance core heuristic
Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
This commit is contained in:
parent
56decdfe0e
commit
dd1b5113dd
@ -44,7 +44,7 @@ fn labelled_topo(input: &[SysctlCputopo]) -> Vec<CpuTopologyInfo> {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user