diff options
Diffstat (limited to 'src/soc/amd/stoneyridge/acpi.c')
-rw-r--r-- | src/soc/amd/stoneyridge/acpi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/amd/stoneyridge/acpi.c b/src/soc/amd/stoneyridge/acpi.c index e6e785c1a8..02ee6fa02f 100644 --- a/src/soc/amd/stoneyridge/acpi.c +++ b/src/soc/amd/stoneyridge/acpi.c @@ -29,6 +29,7 @@ #include <device/device.h> #include <device/pci.h> #include <soc/acpi.h> +#include <soc/pci_devs.h> #include <soc/southbridge.h> #include <soc/nvs.h> @@ -239,7 +240,7 @@ void generate_cpu_entries(device_t device) device_t cdb_dev; /* Stoney Ridge is single node, just report # of cores */ - cdb_dev = dev_find_slot(CONFIG_CBB, PCI_DEVFN(CONFIG_CDB, 5)); + cdb_dev = dev_find_slot(0, NB_DEVFN); cores = (pci_read_config32(cdb_dev, 0x84) & 0xff) + 1; printk(BIOS_DEBUG, "ACPI \\_PR report %d core(s)\n", cores); |