mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
efi: split efisubsystem from efivars
This registers /sys/firmware/efi/{,systab,efivars/} whenever EFI is enabled
and the system is booted with EFI.
This allows
*) userspace to check for the existence of /sys/firmware/efi as a way
to determine whether or it is running on an EFI system.
*) 'mount -t efivarfs none /sys/firmware/efi/efivars' without manually
loading any modules.
[ Also, move the efivar API into vars.c and unconditionally compile it.
This allows us to move efivars.c, which now only contains the sysfs
variable code, into the firmware/efi directory. Note that the efivars.c
filename is kept to maintain backwards compatability with the old
efivars.ko module. With this patch it is now possible for efivarfs
to be built without CONFIG_EFI_VARS - Matt ]
Cc: Seiji Aguchi <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Mike Waychison <[email protected]>
Cc: Kay Sievers <[email protected]>
Cc: Jeremy Kerr <[email protected]>
Cc: Matthew Garrett <[email protected]>
Cc: Chun-Yi Lee <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Cc: Tobias Powalowski <[email protected]>
Signed-off-by: Tom Gundersen <[email protected]>
Signed-off-by: Matt Fleming <[email protected]>
This commit is contained in:
parent
d68772b7c8
commit
a9499fa7cd
8 changed files with 769 additions and 761 deletions
|
|
@ -1,6 +1,6 @@
|
|||
config EFIVAR_FS
|
||||
tristate "EFI Variable filesystem"
|
||||
depends on EFI_VARS
|
||||
depends on EFI
|
||||
help
|
||||
efivarfs is a replacement filesystem for the old EFI
|
||||
variable support via sysfs, as it doesn't suffer from the
|
||||
|
|
|
|||
Loading…
Reference in a new issue