soc/intel/apl: Ensure CPU_CLUSTER linked_list bus exists

This fixes a NULL pointer deref introduced by 69cd729 (mb/*: Remove
lapic from devicetree).

Change-Id: I816fddfe3efe3c3aefe1b2ee28426dc1e1f3c962
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72599
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Arthur Heymans 2023-01-30 13:51:02 +01:00 committed by Felix Held
parent 15d5183e4a
commit 6c88e6ee55

View File

@ -273,6 +273,8 @@ void apollolake_init_cpus(struct device *dev)
{
if (CONFIG(SOC_INTEL_COMMON_BLOCK_CPU_MPINIT))
return;
if (!dev->link_list)
add_more_links(dev, 1);
soc_init_cpus(dev->link_list);
/* Temporarily cache the memory-mapped boot media. */