]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/acpi: Replace manual page table initialization with kernel_ident_mapping_init()
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Wed, 16 Oct 2024 11:14:56 +0000 (14:14 +0300)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Mar 2025 10:12:29 +0000 (11:12 +0100)
commit775d37d8f01ea1349be8bd7cc8651b51814c48df
tree2a85bff11c335b1f2b26d00999f9ca405ee042b1
parent634ab76159a842f890743fb435f74c228e06bb04
x86/acpi: Replace manual page table initialization with kernel_ident_mapping_init()

The init_transition_pgtable() functions maps the page with
asm_acpi_mp_play_dead() into an identity mapping.

Replace open-coded manual page table initialization with
kernel_ident_mapping_init() to avoid code duplication.

Use x86_mapping_info::offset to get the page mapped at the
correct location.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20241016111458.846228-3-kirill.shutemov@linux.intel.com
arch/x86/kernel/acpi/madt_wakeup.c