From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Wed, 11 May 2016 07:45:04 -0700 Subject: [U-Boot] [PATCH v2 10/18] x86: acpi: Remove the unnecessary checksum calculation of DSDT In-Reply-To: <1462977912-13666-1-git-send-email-bmeng.cn@gmail.com> References: <1462977912-13666-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1462977912-13666-11-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Changes in v2: - New patch to remove the unnecessary checksum calculation of DSDT arch/x86/lib/acpi_table.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c index a9fe243..05c958d 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); -- 1.8.2.1