cpu/x86/topology: Add code to fill in topology on struct path
This is needed to generate MADT and SRAT where lapicid for threads need to be added last. When CPUID leaf '0xB' is not present assume some defaults that would result in identical ACPI code generation. Change-Id: I2210eb9b663dd90941a64132aa7154440dc7e5a9 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69222 Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
ddf48eb7c7
commit
177e135136
6 changed files with 123 additions and 19 deletions
|
|
@ -29,13 +29,3 @@ struct device *add_cpu_device(struct bus *cpu_bus, unsigned int apic_id,
|
|||
|
||||
return cpu;
|
||||
}
|
||||
|
||||
void set_cpu_topology(struct device *cpu, unsigned int node,
|
||||
unsigned int package, unsigned int core,
|
||||
unsigned int thread)
|
||||
{
|
||||
cpu->path.apic.node_id = node;
|
||||
cpu->path.apic.package_id = package;
|
||||
cpu->path.apic.core_id = core;
|
||||
cpu->path.apic.thread_id = thread;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue