Rev 6934 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6934 | Rev 7143 | ||
---|---|---|---|
Line 117... | Line 117... | ||
117 | 117 | ||
Line 118... | Line 118... | ||
118 | #include |
118 | #include |
Line -... | Line 119... | ||
- | 119 | ||
119 | 120 | extern const struct cpumask *cpu_coregroup_mask(int cpu); |
|
120 | extern const struct cpumask *cpu_coregroup_mask(int cpu); |
121 | |
Line 121... | Line 122... | ||
121 | 122 | #define topology_logical_package_id(cpu) (cpu_data(cpu).logical_proc_id) |
|
122 | #define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id) |
123 | #define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id) |
123 | #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) |
124 | #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) |
- | 125 | ||
- | 126 | #ifdef ENABLE_TOPO_DEFINES |
|
- | 127 | #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) |
|
- | 128 | #define topology_sibling_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu)) |
|
- | 129 | ||
- | 130 | extern unsigned int __max_logical_packages; |
|
- | 131 | #define topology_max_packages() (__max_logical_packages) |
|
- | 132 | int topology_update_package_map(unsigned int apicid, unsigned int cpu); |
|
- | 133 | extern int topology_phys_to_logical_pkg(unsigned int pkg); |
|
- | 134 | #else |
|
124 | 135 | #define topology_max_packages() (1) |
|
Line 125... | Line 136... | ||
125 | #ifdef ENABLE_TOPO_DEFINES |
136 | static inline int |
126 | #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) |
137 | topology_update_package_map(unsigned int apicid, unsigned int cpu) { return 0; } |
127 | #define topology_sibling_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu)) |
138 | static inline int topology_phys_to_logical_pkg(unsigned int pkg) { return 0; } |