diff options
| author | Len Brown <[email protected]> | 2019-05-13 13:58:47 -0400 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2019-05-23 10:08:31 +0200 |
| commit | 0e344d8c709fe01d882fc0fb5452bedfe5eba67a (patch) | |
| tree | aab6ea8d855d83e6e171fb3806a88109c0bdee40 /include/linux | |
| parent | 14d96d6c06b5d8116b8d52c9c5530f5528ef1e61 (diff) | |
cpu/topology: Export die_id
Export die_id in cpu topology, for the benefit of hardware that has
multiple-die/package.
Signed-off-by: Len Brown <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Ingo Molnar <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/e7d1caaf4fbd24ee40db6d557ab28d7d83298900.1557769318.git.len.brown@intel.com
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/topology.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/topology.h b/include/linux/topology.h index cb0775e1ee4b..5cc8595dd0e4 100644 --- a/include/linux/topology.h +++ b/include/linux/topology.h @@ -184,6 +184,9 @@ static inline int cpu_to_mem(int cpu) #ifndef topology_physical_package_id #define topology_physical_package_id(cpu) ((void)(cpu), -1) #endif +#ifndef topology_die_id +#define topology_die_id(cpu) ((void)(cpu), -1) +#endif #ifndef topology_core_id #define topology_core_id(cpu) ((void)(cpu), 0) #endif |