From 21ca7753bf619f1de8dca79fd1113a9c22335f11 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Sat, 14 May 2022 02:14:31 +0200 Subject: cpu/x86/mp_init.c: Keep track of initial lapic ID inside device_path It's quite confusing to keep track of lapic ID inside the device struct and initial lapic ID inside an array. Change-Id: I4d9f8d23c0b0e5c142f6907593428d8509e4e7bb Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/64342 Reviewed-by: Maximilian Brune Reviewed-by: Patrick Rudolph Tested-by: build bot (Jenkins) --- src/device/cpu_device.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/device') diff --git a/src/device/cpu_device.c b/src/device/cpu_device.c index f406e23f89f4..9185cc67f219 100644 --- a/src/device/cpu_device.c +++ b/src/device/cpu_device.c @@ -13,6 +13,7 @@ struct device *add_cpu_device(struct bus *cpu_bus, unsigned int apic_id, /* Build the CPU device path */ cpu_path.type = DEVICE_PATH_APIC; cpu_path.apic.apic_id = apic_id; + cpu_path.apic.initial_lapicid = apic_id; /* Update CPU in devicetree. */ if (enabled) -- cgit v1.2.3