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>
This commit is contained in:
James Morse
2019-01-29 18:48:41 +00:00
committed by Rafael J. Wysocki
parent e147133a42
commit fb7be08f1a
3 changed files with 8 additions and 45 deletions

View File

@@ -52,7 +52,7 @@ enum {
GHES_SEV_PANIC = 0x3,
};
int ghes_estatus_pool_init(void);
int ghes_estatus_pool_init(int num_ghes);
/* From drivers/edac/ghes_edac.c */