ia64/efi: Implement efi_enabled()
authorMatt Fleming <matt.fleming@intel.com>
Wed, 15 Jan 2014 13:49:51 +0000 (13:49 +0000)
committerMark Brown <broonie@linaro.org>
Thu, 24 Jul 2014 21:58:08 +0000 (22:58 +0100)
commit9ed6b4ce7b3488d6bb880b06b868a976aa9fc968
treed48756903f2c8ad0698ce3b7926b74b9cfca9298
parente42ede8c5eb6b81188aeb6e6e2c2de99dbd8bcd7
ia64/efi: Implement efi_enabled()

There's no good reason to keep efi_enabled() under CONFIG_X86 anymore,
since nothing about the implementation is specific to x86.

Set EFI feature flags in the ia64 boot path instead of claiming to
support all features. The old behaviour was actually buggy since
efi.memmap never points to a valid memory map, so we shouldn't be
claiming to support EFI_MEMMAP.

Fortunately, this bug was never triggered because EFI_MEMMAP isn't used
outside of arch/x86 currently, but that may not always be the case.

Reviewed-and-tested-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
(cherry picked from commit 092063808c498eccac8e891973bf143e7b60d723)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/ia64/kernel/efi.c
include/linux/efi.h