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>
This commit is contained in:
parent
a6fe3f82a8
commit
931a1cec09
4 changed files with 8 additions and 8 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
|
@ -182,7 +182,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)) {
|
||||
|
@ -190,7 +190,7 @@ Scope (\_TZ)
|
|||
}
|
||||
|
||||
// Subtract from Tj_max to get temperature
|
||||
Subtract (\TMAX, Local1, Local0)
|
||||
Local0 = \TMAX - Local1
|
||||
Return (CTOK (Local0))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue