summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/acpi/acpigen.c7
-rw-r--r--src/include/acpi/acpigen.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c
index 5c8c1b98c1..9818dc296c 100644
--- a/src/acpi/acpigen.c
+++ b/src/acpi/acpigen.c
@@ -781,6 +781,13 @@ void acpigen_write_device(const char *name)
acpigen_emit_namestring(name);
}
+void acpigen_write_thermal_zone(const char *name)
+{
+ acpigen_emit_ext_op(THERMAL_ZONE_OP);
+ acpigen_write_len_f();
+ acpigen_emit_namestring(name);
+}
+
void acpigen_write_STA(uint8_t status)
{
/*
diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h
index 0e8d29a81f..2d0bb77d79 100644
--- a/src/include/acpi/acpigen.h
+++ b/src/include/acpi/acpigen.h
@@ -338,6 +338,11 @@ inline void acpigen_write_device_end(void)
{
acpigen_pop_len();
}
+void acpigen_write_thermal_zone(const char *name);
+inline void acpigen_write_thermal_zone_end(void)
+{
+ acpigen_pop_len();
+}
void acpigen_write_LPI_package(u64 level, const struct acpi_lpi_state *states, u16 nentries);
void acpigen_write_PPC(u8 nr);
void acpigen_write_PPC_NVS(void);