summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-12-02 17:44:47 +1100
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-12-02 18:28:58 +0100
commit893a55ec8976529f3f41a22ce7a9a0a2ed9501b4 (patch)
tree0d3a4c98fe12058999861b98754b8d207da35274 /src
parent890073915fa6c6a3672e64590b2edffce7331b65 (diff)
downloadcoreboot-893a55ec8976529f3f41a22ce7a9a0a2ed9501b4.tar.xz
southbridge/amd/agesa/hudson/early_setup.c: Use IS_ENABLED macro
Change-Id: I2adb5a8fe2cede988cc6fdef5ff81da86d267175 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/7624 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/southbridge/amd/agesa/hudson/early_setup.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/southbridge/amd/agesa/hudson/early_setup.c b/src/southbridge/amd/agesa/hudson/early_setup.c
index 039df20c43..1b9b6891e8 100644
--- a/src/southbridge/amd/agesa/hudson/early_setup.c
+++ b/src/southbridge/amd/agesa/hudson/early_setup.c
@@ -123,7 +123,7 @@ int s3_load_nvram_early(int size, u32 *old_dword, int nvram_pos)
return nvram_pos;
}
-#if CONFIG_HAVE_ACPI_RESUME
+#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
int acpi_get_sleep_type(void)
{
u16 tmp = inw(ACPI_PM1_CNT_BLK);
@@ -131,14 +131,12 @@ int acpi_get_sleep_type(void)
/* printk(BIOS_DEBUG, "SLP_TYP type was %x\n", tmp); */
return (int)tmp;
}
-#endif
-#if CONFIG_HAVE_ACPI_RESUME
int acpi_is_wakeup_early(void)
{
return (acpi_get_sleep_type() == 3);
}
-#endif
+#endif /* CONFIG_HAVE_ACPI_RESUME */
unsigned long get_top_of_ram(void)
{
@@ -153,4 +151,4 @@ unsigned long get_top_of_ram(void)
return (unsigned long) xdata;
}
-#endif
+#endif /* _HUDSON_EARLY_SETUP_C_ */