efi: x86: clean up previous struct mm switching
authorArd Biesheuvel <ardb@kernel.org>
Tue, 19 Jan 2021 14:05:40 +0000 (15:05 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 19 Jan 2021 16:57:15 +0000 (17:57 +0100)
commit514b1a8477d25a157f65bf52a443f8ffcc2eb54e
treebad43c89baff36df8af5ede176d981114dc742bd
parent3e1e00c00e2b9b5c9a2f47f1c67720a5d430e4d0
efi: x86: clean up previous struct mm switching

EFI on x86_64 keeps track of the process's MM pointer by storing it
in a global struct called 'efi_scratch', which also used to contain
the mixed mode stack pointer. Let's clean this up a little bit, by
getting rid of the struct, and pushing the mm handling into the
callees entirely.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/include/asm/efi.h
arch/x86/platform/efi/efi_64.c