Export die_id in cpu topology, for the benefit of hardware that has multiple-die/package.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -184,6 +184,9 @@ static inline int cpu_to_mem(int cpu) · 183 unmodified lines | ||
| 184 | 184 | #ifndef topology_physical_package_id |
| 185 | 185 | #define topology_physical_package_id(cpu) ((void)(cpu), -1) |
| 186 | 186 | #endif |
| 187 | +#ifndef topology_die_id | |
| 188 | +#define topology_die_id(cpu) ((void)(cpu), -1) | |
| 189 | +#endif | |
| 187 | 190 | #ifndef topology_core_id |
| 188 | 191 | #define topology_core_id(cpu) ((void)(cpu), 0) |
| 189 | 192 | #endif |