cpu/x86/topology: Add module_id to CPU topology
This commit adds a module_id field to the cpu_topology structure. This field is used to identify the module that a CPU is located on. This information is useful for power management and other purposes. Change-Id: I1c8a76dce48c0539a3f36015674553a2461dec27 Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/85577 Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Frans Hendriks <fhendriks@eltan.com> Reviewed-by: Pranava Y N <pranavayn@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
aeb04808c7
commit
ec7ee5581b
2 changed files with 2 additions and 0 deletions
|
|
@ -116,6 +116,7 @@ void set_cpu_topology(struct device *cpu)
|
|||
} apic_fields[] = {
|
||||
{ LEVEL_TYPE_SMT, &cpu->path.apic.thread_id },
|
||||
{ LEVEL_TYPE_CORE, &cpu->path.apic.core_id },
|
||||
{ LEVEL_TYPE_MODULE, &cpu->path.apic.module_id },
|
||||
{ LEVEL_TYPE_PACKAGE, &cpu->path.apic.package_id },
|
||||
{ LEVEL_TYPE_PACKAGE, &cpu->path.apic.node_id }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ struct apic_path {
|
|||
unsigned int node_id;
|
||||
unsigned int core_id;
|
||||
unsigned int thread_id;
|
||||
unsigned int module_id;
|
||||
unsigned char core_type;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue