]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48c4b0934a89c455ac6c280e921855aaa9e53fa1
treebad43c89baff36df8af5ede176d981114dc742bd
parent29a22b2d0025ffb2bc8c5f1dc07a0726305c2264
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