mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-16 02:44:26 +08:00
tools/power/x86/intel-speed-select: Fix CPU count display
Fix CPU count display for power domain != 0. In the function punit_id is always 0, so it never incremented cpu count for power domain id != 0. Update punit_id after call to update_punit_cpu_info() to what is actually received from the kernel. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
This commit is contained in:
parent
6f8972a02a
commit
7a4ab2f479
@ -778,6 +778,7 @@ static void create_cpu_map(void)
|
||||
map.cpu_map[0].logical_cpu);
|
||||
} else {
|
||||
update_punit_cpu_info(map.cpu_map[0].physical_cpu, &cpu_map[i]);
|
||||
punit_id = cpu_map[i].punit_id;
|
||||
}
|
||||
}
|
||||
cpu_map[i].initialized = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user