From: Ingo Molnar Date: Tue, 3 Mar 2015 06:48:50 +0000 (+0100) Subject: efi: Clean up the efi_call_phys_[prolog|epilog]() save/restore interaction X-Git-Tag: omap-for-v4.2/o2_dc~190^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=744937b0b12a669f298949c4a810794c59fead98;p=pandora-kernel.git efi: Clean up the efi_call_phys_[prolog|epilog]() save/restore interaction Currently x86-64 efi_call_phys_prolog() saves into a global variable (save_pgd), and efi_call_phys_epilog() restores the kernel pagetables from that global variable. Change this to a cleaner save/restore pattern where the saving function returns the saved object and the restore function restores that. Apply the same concept to the 32-bit code as well. Plus this approach, as an added bonus, allows us to express the !efi_enabled(EFI_OLD_MEMMAP) situation in a clean fashion as well, via a 'NULL' return value. Cc: Tapasweni Pathak Signed-off-by: Ingo Molnar Signed-off-by: Matt Fleming --- Reading git-diff-tree failed