26 lines
1017 B
Diff
26 lines
1017 B
Diff
From: Ben Hutchings <ben@decadent.org.uk>
|
|
Subject: x86/efi: Autoload efivars
|
|
Date: Mon, 18 Mar 2013 22:59:14 +0000
|
|
Bug-Debian: https://bugs.debian.org/703363
|
|
Forwarded: no
|
|
|
|
efivars is generally useful to have on EFI systems, and in some cases
|
|
it may be impossible to load it after a kernel upgrade in order to
|
|
complete a boot loader update. efi-pstore is similarly useful though
|
|
less critical. At the same time we don't want to waste memory on
|
|
non-EFI systems by making them built-in.
|
|
|
|
Instead, give them module aliases as if they are platform drivers, and
|
|
register a corresponding platform device whenever EFI runtime services
|
|
are available. This should trigger udev to load them.
|
|
|
|
[bwh: Most of this went upstream in 3.17-rc4, just not the efi-pstore bit.]
|
|
---
|
|
--- a/drivers/firmware/efi/efi-pstore.c
|
|
+++ b/drivers/firmware/efi/efi-pstore.c
|
|
@@ -250,3 +250,4 @@ module_exit(efivars_pstore_exit);
|
|
|
|
MODULE_DESCRIPTION("EFI variable backend for pstore");
|
|
MODULE_LICENSE("GPL");
|
|
+MODULE_ALIAS("platform:efivars");
|