]> git.sur5r.net Git - u-boot/commit
x86: acpi: Deduplicate acpi_fill_madt() implementation
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 21 Jul 2017 19:32:04 +0000 (22:32 +0300)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 30 Jul 2017 02:30:25 +0000 (10:30 +0800)
commitb156da91fb1c266f140d49b0e79bb7c4071dae43
tree1eeecc88deb563a5c5f8ff7c3368460b7dcb1e10
parent2dcbef6f6c43737b3e9244478c6e768a1e73babf
x86: acpi: Deduplicate acpi_fill_madt() implementation

In Baytrail and Quark support code acpi_fill_madt() is identical.

Deduplicate its implementation by moving to lib/acpi_tables.c.

At the same time mark acpi_fill_madt() with __weak attribute to keep a
possibility to override it in platform code

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/baytrail/acpi.c
arch/x86/cpu/quark/acpi.c
arch/x86/lib/acpi_table.c