Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/topology: Define topology_die_id()

topology_die_id(cpu) is a simple macro for use inside the kernel to get the
die_id associated with the given cpu.

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>
Link: https://lkml.kernel.org/r/6463bc422b1b05445a502dc505c1d7c6756bda6a.1557769318.git.len.brown@intel.com

authored by

Len Brown and committed by
Thomas Gleixner
306a0de3 0e344d8c

+1
+1
arch/x86/include/asm/topology.h
··· 106 106 107 107 #define topology_logical_package_id(cpu) (cpu_data(cpu).logical_proc_id) 108 108 #define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id) 109 + #define topology_die_id(cpu) (cpu_data(cpu).cpu_die_id) 109 110 #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) 110 111 111 112 #ifdef CONFIG_SMP