x86/efi: Cleanup efi_enter_virtual_mode() function
authorDave Young <dyoung@redhat.com>
Fri, 20 Dec 2013 10:02:16 +0000 (18:02 +0800)
committerMatt Fleming <matt.fleming@intel.com>
Sat, 21 Dec 2013 15:29:35 +0000 (15:29 +0000)
commit481f75c043cf44ec11c7fbdbbf37d43463f1e719
tree818f8d3accce1527e507c93c311e3f7a70e04306
parenta7f84f03f660d93574ac88835d056c0d6468aebe
x86/efi: Cleanup efi_enter_virtual_mode() function

Add two small functions:
efi_merge_regions() and efi_map_regions(), efi_enter_virtual_mode()
calls them instead of embedding two long for loop.

Signed-off-by: Dave Young <dyoung@redhat.com>
Acked-by: Borislav Petkov <bp@suse.de>
Tested-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/platform/efi/efi.c