File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -452,7 +452,7 @@ static int amd_uncore_cpu_starting(unsigned int cpu)
452
452
453
453
if (amd_uncore_llc ) {
454
454
uncore = * per_cpu_ptr (amd_uncore_llc , cpu );
455
- uncore -> id = per_cpu ( cpu_llc_id , cpu );
455
+ uncore -> id = get_llc_id ( cpu );
456
456
457
457
uncore = amd_uncore_find_online_sibling (uncore , amd_uncore_llc );
458
458
* per_cpu_ptr (amd_uncore_llc , cpu ) = uncore ;
Original file line number Diff line number Diff line change @@ -795,6 +795,8 @@ extern int set_tsc_mode(unsigned int val);
795
795
796
796
DECLARE_PER_CPU (u64 , msr_misc_features_shadow );
797
797
798
+ extern u16 get_llc_id (unsigned int cpu );
799
+
798
800
#ifdef CONFIG_CPU_SUP_AMD
799
801
extern u32 amd_get_nodes_per_socket (void );
800
802
extern u32 amd_get_highest_perf (void );
Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ static void srat_detect_node(struct cpuinfo_x86 *c)
438
438
439
439
node = numa_cpu_node (cpu );
440
440
if (node == NUMA_NO_NODE )
441
- node = per_cpu ( cpu_llc_id , cpu );
441
+ node = get_llc_id ( cpu );
442
442
443
443
/*
444
444
* On multi-fabric platform (e.g. Numascale NumaChip) a
Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ EXPORT_SYMBOL(smp_num_siblings);
79
79
/* Last level cache ID of each logical CPU */
80
80
DEFINE_PER_CPU_READ_MOSTLY (u16 , cpu_llc_id ) = BAD_APICID ;
81
81
82
+ u16 get_llc_id (unsigned int cpu )
83
+ {
84
+ return per_cpu (cpu_llc_id , cpu );
85
+ }
86
+ EXPORT_SYMBOL_GPL (get_llc_id );
87
+
82
88
/* correctly size the local cpu masks */
83
89
void __init setup_cpu_local_masks (void )
84
90
{
You can’t perform that action at this time.
0 commit comments