arm64/efi: Do not enter virtual mode if booting with efi=noruntime or noefi
authorDave Young <dyoung@redhat.com>
Mon, 18 Aug 2014 01:30:07 +0000 (09:30 +0800)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 3 Oct 2014 17:40:59 +0000 (18:40 +0100)
In case efi runtime disabled via noefi kernel cmdline
arm64_enter_virtual_mode should error out.

At the same time move early_memunmap(memmap.map, mapsize) to the
beginning of the function or it will leak early mem.

Signed-off-by: Dave Young <dyoung@redhat.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/arm64/kernel/efi.c

Simple merge