summaryrefslogtreecommitdiff
path: root/src/mainboard/google/jecht/variants/guado
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-29 23:36:13 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-30 23:56:57 +0000
commit931a1cec098fb2f48ee60e877518e9a2295e9943 (patch)
tree2d8f2fa7f610bd9de26d5956d2b254c325cbceae /src/mainboard/google/jecht/variants/guado
parenta6fe3f82a88101ce50b501db27f74fb21fcc458f (diff)
mb/google/jecht/acpi: Replace Subtract(a,b,c) with ASL 2.0 syntax
Replace `Subtract (a, b, c)` with `c = a - b`. Change-Id: I604a5c56e1941dd2932eaa5b44966e6ea06abb4c Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60474 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/mainboard/google/jecht/variants/guado')
-rw-r--r--src/mainboard/google/jecht/variants/guado/include/variant/acpi/thermal.asl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/jecht/variants/guado/include/variant/acpi/thermal.asl b/src/mainboard/google/jecht/variants/guado/include/variant/acpi/thermal.asl
index d5c943a346..1d646697dc 100644
--- a/src/mainboard/google/jecht/variants/guado/include/variant/acpi/thermal.asl
+++ b/src/mainboard/google/jecht/variants/guado/include/variant/acpi/thermal.asl
@@ -74,7 +74,7 @@ Scope (\_TZ)
}
// PECI raw value is an offset from Tj_max
- Subtract (255, Local0, Local1)
+ Local1 = 255 - Local0
// Handle values greater than Tj_max
If (LGreaterEqual (Local1, \TMAX)) {
@@ -82,7 +82,7 @@ Scope (\_TZ)
}
// Subtract from Tj_max to get temperature
- Subtract (\TMAX, Local1, Local0)
+ Local0 = \TMAX - Local1
Return (CTOK (Local0))
}