efi: Move facility flags to struct efi
authorMatt Fleming <matt.fleming@intel.com>
Wed, 15 Jan 2014 13:21:22 +0000 (13:21 +0000)
committerMark Brown <broonie@linaro.org>
Wed, 23 Jul 2014 19:58:33 +0000 (20:58 +0100)
commitf5c16b28d4e8e93d25fef525374f4dc43a7d58b4
tree077ea01a1589dc93ca8b3960da3cc1bad4c057fd
parent05c80d3d5303eb5d973f3e455bcbf6b2381402db
efi: Move facility flags to struct efi

As we grow support for more EFI architectures they're going to want the
ability to query which EFI features are available on the running system.
Instead of storing this information in an architecture-specific place,
stick it in the global 'struct efi', which is already the central
location for EFI state.

While we're at it, let's change the return value of efi_enabled() to be
bool and replace all references to 'facility' with 'feature', which is
the usual word used to describe the attributes of the running system.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
(cherry picked from commit 3e909599215456928e6b42a04f11c2517881570b)
Signed-off-by: Mark Brown <broonie@linaro.org>
Conflicts:
arch/x86/include/asm/efi.h
arch/x86/platform/efi/efi.c
arch/x86/include/asm/efi.h
arch/x86/kernel/setup.c
arch/x86/platform/efi/efi.c
include/linux/efi.h