cpu/amd: add IS_ENABLED() around Kconfig symbol references
Some of these can be changed from #if to if(), but that will happen in a follow-on commmit. Change-Id: I9f4155285529ec28e826637a61436478f648704c Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20335 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
@@ -39,7 +39,7 @@ static void model_15_init(device_t dev)
|
||||
msr_t msr;
|
||||
int msrno;
|
||||
unsigned int cpu_idx;
|
||||
#if CONFIG_LOGICAL_CPUS
|
||||
#if IS_ENABLED(CONFIG_LOGICAL_CPUS)
|
||||
u32 siblings;
|
||||
#endif
|
||||
|
||||
@@ -79,7 +79,7 @@ static void model_15_init(device_t dev)
|
||||
/* Enable the local CPU APICs */
|
||||
setup_lapic();
|
||||
|
||||
#if CONFIG_LOGICAL_CPUS
|
||||
#if IS_ENABLED(CONFIG_LOGICAL_CPUS)
|
||||
siblings = cpuid_ecx(0x80000008) & 0xff;
|
||||
|
||||
if (siblings > 0) {
|
||||
|
||||
@@ -54,7 +54,7 @@ static void model_15_init(device_t dev)
|
||||
u8 i;
|
||||
msr_t msr;
|
||||
int msrno;
|
||||
#if CONFIG_LOGICAL_CPUS
|
||||
#if IS_ENABLED(CONFIG_LOGICAL_CPUS)
|
||||
u32 siblings;
|
||||
#endif
|
||||
|
||||
@@ -93,7 +93,7 @@ static void model_15_init(device_t dev)
|
||||
/* Enable the local CPU APICs */
|
||||
setup_lapic();
|
||||
|
||||
#if CONFIG_LOGICAL_CPUS
|
||||
#if IS_ENABLED(CONFIG_LOGICAL_CPUS)
|
||||
siblings = cpuid_ecx(0x80000008) & 0xff;
|
||||
|
||||
if (siblings > 0) {
|
||||
|
||||
@@ -54,7 +54,7 @@ static void model_15_init(device_t dev)
|
||||
u8 i;
|
||||
msr_t msr;
|
||||
int msrno;
|
||||
#if CONFIG_LOGICAL_CPUS
|
||||
#if IS_ENABLED(CONFIG_LOGICAL_CPUS)
|
||||
u32 siblings;
|
||||
#endif
|
||||
|
||||
@@ -92,7 +92,7 @@ static void model_15_init(device_t dev)
|
||||
/* Enable the local CPU APICs */
|
||||
setup_lapic();
|
||||
|
||||
#if CONFIG_LOGICAL_CPUS
|
||||
#if IS_ENABLED(CONFIG_LOGICAL_CPUS)
|
||||
siblings = cpuid_ecx(0x80000008) & 0xff;
|
||||
|
||||
if (siblings > 0) {
|
||||
|
||||
@@ -37,7 +37,7 @@ static void model_16_init(device_t dev)
|
||||
u8 i;
|
||||
msr_t msr;
|
||||
int msrno;
|
||||
#if CONFIG_LOGICAL_CPUS
|
||||
#if IS_ENABLED(CONFIG_LOGICAL_CPUS)
|
||||
u32 siblings;
|
||||
#endif
|
||||
|
||||
@@ -76,7 +76,7 @@ static void model_16_init(device_t dev)
|
||||
/* Enable the local CPU APICs */
|
||||
setup_lapic();
|
||||
|
||||
#if CONFIG_LOGICAL_CPUS
|
||||
#if IS_ENABLED(CONFIG_LOGICAL_CPUS)
|
||||
siblings = cpuid_ecx(0x80000008) & 0xff;
|
||||
|
||||
if (siblings > 0) {
|
||||
|
||||
Reference in New Issue
Block a user