From d61839c3ea6dd5e35f680ce56b9e2f8247833116 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 3 Dec 2018 16:10:33 +0100 Subject: elog: make elog's SMM handler code follow everything else Instead of ELOG_GSMI_APM_CNT use APM_CNT_ELOG_GSMI and define it in cpu/x86/smm.h Change-Id: I3a3e2f823c91b475d1e15b8c20e9cf5f3fd9de83 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/c/30022 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/soc/amd/stoneyridge/smihandler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/soc/amd/stoneyridge/smihandler.c') diff --git a/src/soc/amd/stoneyridge/smihandler.c b/src/soc/amd/stoneyridge/smihandler.c index a5e66a88d2..a662bc5d37 100644 --- a/src/soc/amd/stoneyridge/smihandler.c +++ b/src/soc/amd/stoneyridge/smihandler.c @@ -72,7 +72,7 @@ static void southbridge_smi_gsmi(void) amd64_smm_state_save_area_t *io_smi; u32 reg_ebx; - io_smi = find_save_state(ELOG_GSMI_APM_CNT); + io_smi = find_save_state(APM_CNT_ELOG_GSMI); if (!io_smi) return; /* Command and return value in EAX */ @@ -101,7 +101,7 @@ static void sb_apmc_smi_handler(void) reg32 &= ~(1 << 0); /* clear SCI_EN */ acpi_write32(MMIO_ACPI_PM1_CNT_BLK, reg32); break; - case ELOG_GSMI_APM_CNT: + case APM_CNT_ELOG_GSMI: if (IS_ENABLED(CONFIG_ELOG_GSMI)) southbridge_smi_gsmi(); break; -- cgit v1.2.3