Commit 7a4ab2f4 authored by Srinivas Pandruvada's avatar Srinivas Pandruvada

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: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
parent 6f8972a0
...@@ -778,6 +778,7 @@ static void create_cpu_map(void) ...@@ -778,6 +778,7 @@ static void create_cpu_map(void)
map.cpu_map[0].logical_cpu); map.cpu_map[0].logical_cpu);
} else { } else {
update_punit_cpu_info(map.cpu_map[0].physical_cpu, &cpu_map[i]); 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; cpu_map[i].initialized = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment