soc/intel/acpi: Replace Multiply(a,b,c) with ASL 2.0 syntax
Replace `Multiply (a, b, c)` with `c = a * b`. Change-Id: I97332e3008ed2e26a75c067baffdabfc7cfcf65f Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70627 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
parent
4bbd807c01
commit
447c399d35
|
@ -60,7 +60,7 @@ Device (DPTF)
|
|||
/* Convert from Degrees C to 1/10 Kelvin for ACPI */
|
||||
Method (CTOK, 1) {
|
||||
/* 10th of Degrees C */
|
||||
Multiply (Arg0, 10, Local0)
|
||||
Local0 = Arg0 * 10
|
||||
|
||||
/* Convert to Kelvin */
|
||||
Local0 += 2732
|
||||
|
|
|
@ -60,7 +60,7 @@ Device (DPTF)
|
|||
/* Convert from Degrees C to 1/10 Kelvin for ACPI */
|
||||
Method (CTOK, 1) {
|
||||
/* 10th of Degrees C */
|
||||
Multiply (Arg0, 10, Local0)
|
||||
Local0 = Arg0 * 10
|
||||
|
||||
/* Convert to Kelvin */
|
||||
Local0 += 2732
|
||||
|
|
|
@ -37,7 +37,7 @@ Device (LPCB)
|
|||
{
|
||||
CreateDwordField (^RBUF, ^FBAR._BAS, FBAS)
|
||||
CreateDwordField (^RBUF, ^FBAR._LEN, FLEN)
|
||||
Multiply(CONFIG_COREBOOT_ROMSIZE_KB, 1024, Local0)
|
||||
Local0 = CONFIG_COREBOOT_ROMSIZE_KB * 1024
|
||||
Store(Local0, FLEN)
|
||||
FBAS = 0xffffffff - Local0 + 1
|
||||
Return (^RBUF)
|
||||
|
|
Loading…
Reference in New Issue