summaryrefslogtreecommitdiff
path: root/include/linux/topology.h
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2019-05-13 13:58:47 -0400
committerThomas Gleixner <tglx@linutronix.de>2019-05-23 10:08:31 +0200
commit0e344d8c709fe01d882fc0fb5452bedfe5eba67a (patch)
treeaab6ea8d855d83e6e171fb3806a88109c0bdee40 /include/linux/topology.h
parent14d96d6c06b5d8116b8d52c9c5530f5528ef1e61 (diff)
downloadlwn-0e344d8c709fe01d882fc0fb5452bedfe5eba67a.tar.gz
lwn-0e344d8c709fe01d882fc0fb5452bedfe5eba67a.zip
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 <len.brown@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Ingo Molnar <mingo@kernel.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: linux-doc@vger.kernel.org Link: https://lkml.kernel.org/r/e7d1caaf4fbd24ee40db6d557ab28d7d83298900.1557769318.git.len.brown@intel.com
Diffstat (limited to 'include/linux/topology.h')
-rw-r--r--include/linux/topology.h3
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