@@ -339,7 +339,7 @@ int topology_phys_to_logical_pkg(unsigned int phys_pkg)
339
339
for_each_possible_cpu (cpu ) {
340
340
struct cpuinfo_x86 * c = & cpu_data (cpu );
341
341
342
- if (c -> initialized && c -> phys_proc_id == phys_pkg )
342
+ if (c -> initialized && c -> topo . pkg_id == phys_pkg )
343
343
return c -> logical_proc_id ;
344
344
}
345
345
return -1 ;
@@ -355,13 +355,13 @@ EXPORT_SYMBOL(topology_phys_to_logical_pkg);
355
355
*/
356
356
static int topology_phys_to_logical_die (unsigned int die_id , unsigned int cur_cpu )
357
357
{
358
- int cpu , proc_id = cpu_data (cur_cpu ).phys_proc_id ;
358
+ int cpu , proc_id = cpu_data (cur_cpu ).topo . pkg_id ;
359
359
360
360
for_each_possible_cpu (cpu ) {
361
361
struct cpuinfo_x86 * c = & cpu_data (cpu );
362
362
363
363
if (c -> initialized && c -> cpu_die_id == die_id &&
364
- c -> phys_proc_id == proc_id )
364
+ c -> topo . pkg_id == proc_id )
365
365
return c -> logical_die_id ;
366
366
}
367
367
return -1 ;
@@ -421,7 +421,7 @@ static void __init smp_store_boot_cpu_info(void)
421
421
422
422
* c = boot_cpu_data ;
423
423
c -> cpu_index = id ;
424
- topology_update_package_map (c -> phys_proc_id , id );
424
+ topology_update_package_map (c -> topo . pkg_id , id );
425
425
topology_update_die_map (c -> cpu_die_id , id );
426
426
c -> initialized = true;
427
427
}
@@ -476,7 +476,7 @@ static bool match_smt(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o)
476
476
if (boot_cpu_has (X86_FEATURE_TOPOEXT )) {
477
477
int cpu1 = c -> cpu_index , cpu2 = o -> cpu_index ;
478
478
479
- if (c -> phys_proc_id == o -> phys_proc_id &&
479
+ if (c -> topo . pkg_id == o -> topo . pkg_id &&
480
480
c -> cpu_die_id == o -> cpu_die_id &&
481
481
per_cpu (cpu_llc_id , cpu1 ) == per_cpu (cpu_llc_id , cpu2 )) {
482
482
if (c -> cpu_core_id == o -> cpu_core_id )
@@ -488,7 +488,7 @@ static bool match_smt(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o)
488
488
return topology_sane (c , o , "smt" );
489
489
}
490
490
491
- } else if (c -> phys_proc_id == o -> phys_proc_id &&
491
+ } else if (c -> topo . pkg_id == o -> topo . pkg_id &&
492
492
c -> cpu_die_id == o -> cpu_die_id &&
493
493
c -> cpu_core_id == o -> cpu_core_id ) {
494
494
return topology_sane (c , o , "smt" );
@@ -499,7 +499,7 @@ static bool match_smt(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o)
499
499
500
500
static bool match_die (struct cpuinfo_x86 * c , struct cpuinfo_x86 * o )
501
501
{
502
- if (c -> phys_proc_id == o -> phys_proc_id &&
502
+ if (c -> topo . pkg_id == o -> topo . pkg_id &&
503
503
c -> cpu_die_id == o -> cpu_die_id )
504
504
return true;
505
505
return false;
@@ -527,7 +527,7 @@ static bool match_l2c(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o)
527
527
*/
528
528
static bool match_pkg (struct cpuinfo_x86 * c , struct cpuinfo_x86 * o )
529
529
{
530
- if (c -> phys_proc_id == o -> phys_proc_id )
530
+ if (c -> topo . pkg_id == o -> topo . pkg_id )
531
531
return true;
532
532
return false;
533
533
}
0 commit comments