diff options
author | Martin Roth <gaumless@gmail.com> | 2015-07-11 13:42:54 -0600 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2015-07-12 18:14:23 +0200 |
commit | c4e49f62621429a363b092d1a6df11d2cf380465 (patch) | |
tree | f94744175c6dea9ccf4e7ac207a6b97da8464364 /src/cpu | |
parent | d139c48a23cd308caef4e79aeedd03f6392d6847 (diff) | |
download | coreboot-c4e49f62621429a363b092d1a6df11d2cf380465.tar.gz coreboot-c4e49f62621429a363b092d1a6df11d2cf380465.tar.bz2 coreboot-c4e49f62621429a363b092d1a6df11d2cf380465.zip |
Change #ifdef and #if defined CONFIG_ bools to #if IS_ENABLED()
Kconfigs symbols of type bool are always defined, and can be tested with
the IS_ENABLED() macro.
symbol type except string.
Change-Id: Ic4ba79f519ee2a53d39c10859bbfa9c32015b19d
Signed-off-by: Martin Roth <gaumless@gmail.com>
Reviewed-on: http://review.coreboot.org/10885
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/x86/mtrr/earlymtrr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/x86/mtrr/earlymtrr.c b/src/cpu/x86/mtrr/earlymtrr.c index 0471a9ef9f1d..3db676b6d6a3 100644 --- a/src/cpu/x86/mtrr/earlymtrr.c +++ b/src/cpu/x86/mtrr/earlymtrr.c @@ -19,7 +19,7 @@ void set_var_mtrr( wrmsr(MTRRphysMask_MSR(reg), maskm); } -#if !defined(CONFIG_CACHE_AS_RAM) || !CONFIG_CACHE_AS_RAM +#if !IS_ENABLED(CONFIG_CACHE_AS_RAM) static void cache_ramstage(void) { /* Enable caching for lower 1MB and ram stage using variable mtrr */ |