From 15f232df089a6620f7fe2541caa7713422885c72 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sun, 29 Apr 2018 22:41:58 -0500 Subject: chromeec platforms: Update ACPI thermal event handler call Currently the thermal event handler method TEVT is defined as an extern, then defined again in platforms with thermal event handling. In newer versions of IASL, this generates an error, as the method is defined in two places. Simply removing the extern causes the call to it to fail on platforms where it isn't actually defined, so add a preprocessor define where it's implemented, and only call the method on those platforms. Change-Id: I64dcd2918d14f75ad3c356b321250bfa9d92c8a5 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/25916 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/common/acpi/dptf/thermal.asl | 1 + 1 file changed, 1 insertion(+) (limited to 'src/soc/intel/common/acpi') diff --git a/src/soc/intel/common/acpi/dptf/thermal.asl b/src/soc/intel/common/acpi/dptf/thermal.asl index ce220c4604..c8aa03749b 100644 --- a/src/soc/intel/common/acpi/dptf/thermal.asl +++ b/src/soc/intel/common/acpi/dptf/thermal.asl @@ -15,6 +15,7 @@ */ /* Thermal Threshold Event Handler */ +#define HAVE_THERM_EVENT_HANDLER Method (TEVT, 1, NotSerialized) { Store (ToInteger (Arg0), Local0) -- cgit v1.2.3