|
@@ -3061,7 +3061,7 @@ static struct event_constraint bdx_uncore_pcu_constraints[] = {
|
|
|
|
|
|
void bdx_uncore_cpu_init(void)
|
|
void bdx_uncore_cpu_init(void)
|
|
{
|
|
{
|
|
- int pkg = topology_phys_to_logical_pkg(0);
|
|
|
|
|
|
+ int pkg = topology_phys_to_logical_pkg(boot_cpu_data.phys_proc_id);
|
|
|
|
|
|
if (bdx_uncore_cbox.num_boxes > boot_cpu_data.x86_max_cores)
|
|
if (bdx_uncore_cbox.num_boxes > boot_cpu_data.x86_max_cores)
|
|
bdx_uncore_cbox.num_boxes = boot_cpu_data.x86_max_cores;
|
|
bdx_uncore_cbox.num_boxes = boot_cpu_data.x86_max_cores;
|