|
@@ -231,16 +231,17 @@ void __init acpi_hest_init(void)
|
|
|
goto err;
|
|
|
}
|
|
|
|
|
|
- rc = apei_hest_parse(hest_parse_ghes_count, &ghes_count);
|
|
|
- if (rc)
|
|
|
- goto err;
|
|
|
-
|
|
|
- rc = hest_ghes_dev_register(ghes_count);
|
|
|
- if (!rc) {
|
|
|
- pr_info(HEST_PFX "Table parsing has been initialized.\n");
|
|
|
- return;
|
|
|
+ if (!ghes_disable) {
|
|
|
+ rc = apei_hest_parse(hest_parse_ghes_count, &ghes_count);
|
|
|
+ if (rc)
|
|
|
+ goto err;
|
|
|
+ rc = hest_ghes_dev_register(ghes_count);
|
|
|
+ if (rc)
|
|
|
+ goto err;
|
|
|
}
|
|
|
|
|
|
+ pr_info(HEST_PFX "Table parsing has been initialized.\n");
|
|
|
+ return;
|
|
|
err:
|
|
|
hest_disable = 1;
|
|
|
}
|