From 22236a580d45bdd6d7b5f9d2d64f3ddf64f4dd04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Fri, 8 Jan 2021 13:33:10 +0200 Subject: [PATCH] cpu/x86/smm: Remove unused APMC for C-state and P-state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7a3a1b63c0ef14b1e24ecce2df66f7970e5eb669 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/49892 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/cpu/x86/smm/smi_trigger.c | 6 ------ src/include/cpu/x86/smm.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/cpu/x86/smm/smi_trigger.c b/src/cpu/x86/smm/smi_trigger.c index ff5eeae778..e4c6dc9417 100644 --- a/src/cpu/x86/smm/smi_trigger.c +++ b/src/cpu/x86/smm/smi_trigger.c @@ -7,12 +7,6 @@ static void apmc_log(const char *fn, u8 cmd) { switch (cmd) { - case APM_CNT_CST_CONTROL: - printk(BIOS_DEBUG, "%s: C-state control.\n", fn); - break; - case APM_CNT_PST_CONTROL: - printk(BIOS_DEBUG, "%s: P-state control.\n", fn); - break; case APM_CNT_ACPI_DISABLE: printk(BIOS_DEBUG, "%s: Disabling ACPI.\n", fn); break; diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h index 31827cfb3f..cd83bdf4bd 100644 --- a/src/include/cpu/x86/smm.h +++ b/src/include/cpu/x86/smm.h @@ -18,8 +18,6 @@ #define APM_CNT 0xb2 #define APM_CNT_NOOP_SMI 0x00 -#define APM_CNT_CST_CONTROL 0x85 -#define APM_CNT_PST_CONTROL 0x80 #define APM_CNT_ACPI_DISABLE 0x1e #define APM_CNT_ACPI_ENABLE 0xe1 #define APM_CNT_ROUTE_ALL_XHCI 0xca