mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00:00
To avoid arch-specific code in general ACPI initialization flow, introduce a weak symbol acpi_arch_init(). Currently, arm64 and riscv can utillize this to insert their arch-specific flow. In the future, other architectures can also have a chance to define their own arch-specific ACPI initialization process if necessary. Reviewed-by: Sunil V L <[email protected]> Reviewed-by: Sudeep Holla <[email protected]> Acked-by: Hanjun Guo <[email protected]> Signed-off-by: Miao Wang <[email protected]> Link: https://patch.msgid.link/[email protected] [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
16 lines
340 B
C
16 lines
340 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
#include <linux/acpi.h>
|
|
#include "init.h"
|
|
|
|
void __init acpi_arch_init(void)
|
|
{
|
|
if (IS_ENABLED(CONFIG_ACPI_AGDI))
|
|
acpi_agdi_init();
|
|
if (IS_ENABLED(CONFIG_ACPI_APMT))
|
|
acpi_apmt_init();
|
|
if (IS_ENABLED(CONFIG_ACPI_IORT))
|
|
acpi_iort_init();
|
|
if (IS_ENABLED(CONFIG_ARM_AMBA))
|
|
acpi_amba_init();
|
|
}
|