summaryrefslogtreecommitdiff
path: root/include/acpi/ghes.h
diff options
context:
space:
mode:
authorJames Morse <james.morse@arm.com>2019-01-29 21:48:41 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-02-08 01:10:45 +0300
commitfb7be08f1a091ec243780bfdad4bf0c492057808 (patch)
treeb19b32d9887a4a310657ed8690c5c9f17e4a2185 /include/acpi/ghes.h
parente147133a42cb9df6cbc99503fdf58d0e6388bf2a (diff)
downloadlinux-fb7be08f1a091ec243780bfdad4bf0c492057808.tar.xz
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>
Diffstat (limited to 'include/acpi/ghes.h')
-rw-r--r--include/acpi/ghes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/acpi/ghes.h b/include/acpi/ghes.h
index 46ef5566e052..cd9ee507d860 100644
--- a/include/acpi/ghes.h
+++ b/include/acpi/ghes.h
@@ -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 */