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>
Thu, 24 Jul 2014 21:58:42 +0000 (22:58 +0100)
commit24439fe94eaa533c36227c7d856021ec99696c0b
tree4f63ce52aa6653db41c0a6af0b45c5ed4cc6e046
parent9ed6b4ce7b3488d6bb880b06b868a976aa9fc968
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/platform/efi/efi.c
arch/x86/platform/efi/efi.c