mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 21:21:32 +00:00
fix(power): ensure that xeon cpus with cpu gaps are not detected as p/e compatible (#218)
This commit is contained in:
@ -47,7 +47,12 @@ fn labelled_topo(input: &[SysctlCputopo]) -> Vec<CpuTopologyInfo> {
|
||||
}
|
||||
|
||||
if last
|
||||
.map(|last| (item.core - last.core) >= 2)
|
||||
.map(|last| {
|
||||
item.core
|
||||
.checked_sub(last.core)
|
||||
.map(|diff| diff >= 3)
|
||||
.unwrap_or(false)
|
||||
})
|
||||
.unwrap_or(false)
|
||||
{
|
||||
// detect if performance cores seem to be kicking in.
|
||||
|
Reference in New Issue
Block a user