ACPI / APEI: Make estatus pool allocation a static size

Adding new NMI-like notifications duplicates the calls that grow
and shrink the estatus pool. This is all pretty pointless, as the
size is capped to 64K. Allocate this for each ghes and drop
the code that grows and shrinks the pool.

Suggested-by: Borislav Petkov <bp@suse.de>
Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Dieser Commit ist enthalten in:
James Morse
2019-01-29 18:48:41 +00:00
committet von Rafael J. Wysocki
Ursprung e147133a42
Commit fb7be08f1a
3 geänderte Dateien mit 8 neuen und 45 gelöschten Zeilen

Datei anzeigen

@@ -211,7 +211,7 @@ static int __init hest_ghes_dev_register(unsigned int ghes_count)
if (rc)
goto err;
rc = ghes_estatus_pool_init();
rc = ghes_estatus_pool_init(ghes_count);
if (rc)
goto err;