diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2016-05-11 07:45:04 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2016-05-23 15:18:00 +0800 |
commit | 17b63c80bffbaad344a4f6dd2363830e13ed8c03 (patch) | |
tree | 1c7e44f67367e3a46256b5578ce33e5580779d67 /arch/x86/lib/acpi_table.c | |
parent | 6aef68dc36bc93e1c32c1f7119b580f5eda92182 (diff) | |
download | u-boot-imx-17b63c80bffbaad344a4f6dd2363830e13ed8c03.zip u-boot-imx-17b63c80bffbaad344a4f6dd2363830e13ed8c03.tar.gz u-boot-imx-17b63c80bffbaad344a4f6dd2363830e13ed8c03.tar.bz2 |
x86: acpi: Remove the unnecessary checksum calculation of DSDT
The generated AmlCode[] from IASL already has the calculated DSDT
table checksum in place. No need for us to calculate it again.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/lib/acpi_table.c')
-rw-r--r-- | arch/x86/lib/acpi_table.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c index 855d4a0..1c57094 100644 --- a/arch/x86/lib/acpi_table.c +++ b/arch/x86/lib/acpi_table.c @@ -382,12 +382,6 @@ u32 write_acpi_tables(u32 start) (char *)&AmlCode + sizeof(struct acpi_table_header), dsdt->length - sizeof(struct acpi_table_header)); current += dsdt->length - sizeof(struct acpi_table_header); - - /* (Re)calculate length and checksum */ - dsdt->length = current - (u32)dsdt; - dsdt->checksum = 0; - dsdt->checksum = table_compute_checksum((void *)dsdt, - dsdt->length); } current = ALIGN(current, 16); |