diff options
author | Timothy Pearson <tpearson@raptorengineeringinc.com> | 2015-10-27 16:48:36 -0500 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-10-29 15:38:12 +0100 |
commit | d4bbfe863b8d7f0018e1b1a35034f783293926ea (patch) | |
tree | 5879636080f8e42f069c42c49f3ff2ae5bbddc09 /src/mainboard/msi/ms9185/get_bus_conf.c | |
parent | ce2564ac519fd974eeaa070ccb30d5a12e0c3334 (diff) |
mainboard: Convert #ifdef to IS_ENABLED in get_bus_conf.c
Change-Id: I254e9e9e65519edcf4d3f1ecc385af16d18c2367
Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
Reviewed-on: http://review.coreboot.org/12208
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/msi/ms9185/get_bus_conf.c')
-rw-r--r-- | src/mainboard/msi/ms9185/get_bus_conf.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mainboard/msi/ms9185/get_bus_conf.c b/src/mainboard/msi/ms9185/get_bus_conf.c index dd6e2c1768..67ddefe64c 100644 --- a/src/mainboard/msi/ms9185/get_bus_conf.c +++ b/src/mainboard/msi/ms9185/get_bus_conf.c @@ -26,9 +26,7 @@ #include <device/pci_ids.h> #include <string.h> #include <stdint.h> -#if CONFIG_LOGICAL_CPUS #include <cpu/amd/multicore.h> -#endif #include <cpu/amd/amdk8_sysconf.h> @@ -127,11 +125,10 @@ void get_bus_conf(void) } /*I/O APICs: APIC ID Version State Address*/ -#if CONFIG_LOGICAL_CPUS - apicid_base = get_apicid_base(3); -#else - apicid_base = CONFIG_MAX_PHYSICAL_CPUS; -#endif + if (IS_ENABLED(CONFIG_LOGICAL_CPUS)) + apicid_base = get_apicid_base(3); + else + apicid_base = CONFIG_MAX_PHYSICAL_CPUS; for (i = 0; i < 3; i++) m->apicid_bcm5785[i] = apicid_base + i; } |