summaryrefslogtreecommitdiff
path: root/src/drivers/acpi/thermal_zone
diff options
context:
space:
mode:
authorNicholas Sudsgaard <devel+coreboot@nsudsgaard.com>2024-03-10 22:23:40 +0900
committerFelix Held <felix-coreboot@felixheld.de>2024-04-11 19:08:10 +0000
commit09a0dc650d8f4c4ed319d302a78252c181b8db6c (patch)
tree399b03dffa7a065d84161b860dc4c9ad62323a3b /src/drivers/acpi/thermal_zone
parent4c333a6b4607db65b93020a892c5e770fbb65828 (diff)
drivers/acpi/thermal_zone: Correct Kelvin constant used for conversion
As 0C is 273.15K you could argue that 2731 and 2732 are both correct. However, 2732 is deemed as correct both throughout the codebase and in the ACPI specification[1]. [1]: https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/11_Thermal_Management/thermal-control.html#temperature-change-notifications Change-Id: I845bc750681c7ae6f2d1342b32983b990ce6d296 Signed-off-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81197 Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <inforichland@gmail.com>
Diffstat (limited to 'src/drivers/acpi/thermal_zone')
-rw-r--r--src/drivers/acpi/thermal_zone/thermal_zone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/acpi/thermal_zone/thermal_zone.c b/src/drivers/acpi/thermal_zone/thermal_zone.c
index 34fa1b8c7a..ef95bed23a 100644
--- a/src/drivers/acpi/thermal_zone/thermal_zone.c
+++ b/src/drivers/acpi/thermal_zone/thermal_zone.c
@@ -16,7 +16,7 @@
#define DEFAULT_TC2 5
#define DEFAULT_TSP 10
-#define CELSIUS_TO_DECI_KELVIN(temp_c) ((temp_c) * 10 + 2731)
+#define CELSIUS_TO_DECI_KELVIN(temp_c) ((temp_c) * 10 + 2732)
#define SECONDS_TO_DECI_SECONDS(s) ((s) * 10)
static const char *thermal_zone_acpi_name(const struct device *dev)