diff options
| author | Tom Rini <[email protected]> | 2025-04-08 15:23:06 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-04-08 16:23:27 -0600 |
| commit | fba8bfdd0bf2db1edd0383ba89a0c6037a6fe807 (patch) | |
| tree | e6389f796e17959417c99a9ca196d373ffec4c94 /arch/x86/cpu | |
| parent | a1dd42950dee5e0da8fb5e053d8506eaa4000bf4 (diff) | |
| parent | fecc50b0517d362b4db173b08a769f7b975d8255 (diff) | |
Merge patch series "acpi: simplify updating ACPI table header checksum"
Heinrich Schuchardt <[email protected]> says:
Introduce a new function to update ACPI table headers.
This allows to simplify the existing code.
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/x86/cpu')
| -rw-r--r-- | arch/x86/cpu/apollolake/hostbridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/apollolake/hostbridge.c b/arch/x86/cpu/apollolake/hostbridge.c index 039236df02d..284f16cfd91 100644 --- a/arch/x86/cpu/apollolake/hostbridge.c +++ b/arch/x86/cpu/apollolake/hostbridge.c @@ -298,7 +298,7 @@ static int apl_acpi_hb_write_tables(const struct udevice *dev, /* (Re)calculate length and checksum */ header->length = ctx->current - (void *)dmar; - header->checksum = table_compute_checksum((void *)dmar, header->length); + acpi_update_checksum(header); acpi_align(ctx); acpi_add_table(ctx, dmar); |
