[PATCH] x86_64: moving phys_proc_id and cpu_core_id to cpuinfo_x86
Most of the fields of cpuinfo are defined in cpuinfo_x86 structure. This patch moves the phys_proc_id and cpu_core_id for each processor to cpuinfo_x86 structure as well. Signed-off-by: Rohit Seth <rohitseth@google.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
e465058d55
commit
f3fa8ebc25
@@ -69,7 +69,11 @@ struct cpuinfo_x86 {
|
||||
cpumask_t llc_shared_map; /* cpus sharing the last level cache */
|
||||
#endif
|
||||
__u8 apicid;
|
||||
#ifdef CONFIG_SMP
|
||||
__u8 booted_cores; /* number of cores as seen by OS */
|
||||
__u8 phys_proc_id; /* Physical Processor id. */
|
||||
__u8 cpu_core_id; /* Core id. */
|
||||
#endif
|
||||
} ____cacheline_aligned;
|
||||
|
||||
#define X86_VENDOR_INTEL 0
|
||||
|
||||
Reference in New Issue
Block a user