Skip to content
Commit 594c7255 authored by Tomasz Nowicki's avatar Tomasz Nowicki Committed by Tony Luck
Browse files

acpi, apei, ghes: Factor out ioremap virtual memory for IRQ and NMI context.



GHES currently maps two pages with atomic_ioremap.  From now
on, NMI is architectural depended so there is no need to allocate
an NMI page for platforms without NMI support.

To make it possible to not use a second page, swap the existing
page order so that the IRQ context page is first, and the optional
NMI context page is second.  Then, use HAVE_ACPI_APEI_NMI to decide
how many pages are to be allocated.

Signed-off-by: default avatarTomasz Nowicki <tomasz.nowicki@linaro.org>
Acked-by: default avatarBorislav Petkov <bp@suse.de>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 44a69f61
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment