diff options
Diffstat (limited to 'drivers/acpi/apei/hest.c')
-rw-r--r-- | drivers/acpi/apei/hest.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/acpi/apei/hest.c b/drivers/acpi/apei/hest.c index 7bf48c2776fb..6eafbff29018 100644 --- a/drivers/acpi/apei/hest.c +++ b/drivers/acpi/apei/hest.c @@ -235,7 +235,10 @@ void __init acpi_hest_init(void) return; } - status = acpi_get_table(ACPI_SIG_HEST, 0, + if (hest_tab) + status = AE_OK; + else + status = acpi_get_table(ACPI_SIG_HEST, 0, (struct acpi_table_header **)&hest_tab); if (status == AE_NOT_FOUND) { hest_disable = HEST_NOT_FOUND; @@ -268,3 +271,11 @@ err: hest_disable = HEST_DISABLED; acpi_put_table((struct acpi_table_header *)hest_tab); } + +/* + * This allows the HEST to be initialized externally, in the absence of ACPI. + */ +void __init hest_table_set(struct acpi_table_hest *table) +{ + hest_tab = table; +} |