File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,8 @@ extern const struct cpumask *cpu_coregroup_mask(int cpu);
110
110
#define topology_die_id (cpu ) (cpu_data(cpu).cpu_die_id)
111
111
#define topology_core_id (cpu ) (cpu_data(cpu).cpu_core_id)
112
112
113
+ extern unsigned int __max_die_per_package ;
114
+
113
115
#ifdef CONFIG_SMP
114
116
#define topology_die_cpumask (cpu ) (per_cpu(cpu_die_map, cpu))
115
117
#define topology_core_cpumask (cpu ) (per_cpu(cpu_core_map, cpu))
@@ -118,8 +120,6 @@ extern const struct cpumask *cpu_coregroup_mask(int cpu);
118
120
extern unsigned int __max_logical_packages ;
119
121
#define topology_max_packages () (__max_logical_packages)
120
122
121
- extern unsigned int __max_die_per_package ;
122
-
123
123
static inline int topology_max_die_per_package (void )
124
124
{
125
125
return __max_die_per_package ;
Original file line number Diff line number Diff line change 25
25
#define BITS_SHIFT_NEXT_LEVEL (eax ) ((eax) & 0x1f)
26
26
#define LEVEL_MAX_SIBLINGS (ebx ) ((ebx) & 0xffff)
27
27
28
- #ifdef CONFIG_SMP
29
28
unsigned int __max_die_per_package __read_mostly = 1 ;
30
29
EXPORT_SYMBOL (__max_die_per_package );
31
30
31
+ #ifdef CONFIG_SMP
32
32
/*
33
33
* Check if given CPUID extended toplogy "leaf" is implemented
34
34
*/
You can’t perform that action at this time.
0 commit comments