projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e344d8
)
x86/topology: Define topology_die_id()
author
Len Brown
<len.brown@intel.com>
Mon, 13 May 2019 17:58:48 +0000
(13:58 -0400)
committer
Thomas Gleixner
<tglx@linutronix.de>
Thu, 23 May 2019 08:08:31 +0000
(10:08 +0200)
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
arch/x86/include/asm/topology.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/topology.h
b/arch/x86/include/asm/topology.h
index e0232f7042c3c2e588106ab5995fd386b43b6436..3777dbe9c0ffd3c63577bf8bc0b2b558ca0f3b8c 100644
(file)
--- a/
arch/x86/include/asm/topology.h
+++ b/
arch/x86/include/asm/topology.h
@@
-106,6
+106,7
@@
extern const struct cpumask *cpu_coregroup_mask(int cpu);
#define topology_logical_package_id(cpu) (cpu_data(cpu).logical_proc_id)
#define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id)
+#define topology_die_id(cpu) (cpu_data(cpu).cpu_die_id)
#define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id)
#ifdef CONFIG_SMP