x86, efi: Refactor efi_init() a bit
authorOlof Johansson <olof@lixom.net>
Sun, 12 Feb 2012 21:24:25 +0000 (13:24 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 24 Feb 2012 02:53:56 +0000 (18:53 -0800)
commit83e7ee6657dfcd6b0ee2406d11024b558064252a
tree76f3e07f4689681f1e4e58a508c987f9cdc1f854
parentb01543dfe67bb1d191998e90d20534dc354de059
x86, efi: Refactor efi_init() a bit

Break out some of the init steps into helper functions.

Only change to execution flow is the removal of the warning when the
kernel memdesc structure differ in size from what firmware specifies
since it's a bogus warning (it's a valid difference per spec).

v4:
* Removed memdesc warning as per above

Signed-off-by: Olof Johansson <olof@lixom.net>
Link: http://lkml.kernel.org/r/1329081869-20779-2-git-send-email-olof@lixom.net
Acked-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/platform/efi/efi.c