Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361723
b: refs/heads/master
c: ec0971b
h: refs/heads/master
i:
  361721: 8fb538b
  361719: 2fab1cc
v: v3
  • Loading branch information
Seth Forshee authored and Matt Fleming committed Mar 21, 2013
1 parent 795de8f commit 3d4581b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ed9dc8ce7a1c8115dba9483a9b51df8b63a2e0ef
refs/heads/master: ec0971ba5372a4dfa753f232449d23a8fd98490e
9 changes: 9 additions & 0 deletions trunk/drivers/firmware/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ config EFI_VARS_PSTORE
will allow writing console messages, crash dumps, or anything
else supported by pstore to EFI variables.

config EFI_VARS_PSTORE_DEFAULT_DISABLE
bool "Disable using efivars as a pstore backend by default"
depends on EFI_VARS_PSTORE
default n
help
Saying Y here will disable the use of efivars as a storage
backend for pstore by default. This setting can be overridden
using the efivars module's pstore_disable parameter.

config EFI_PCDP
bool "Console device selection via EFI PCDP or HCDP table"
depends on ACPI && EFI && IA64
Expand Down
8 changes: 7 additions & 1 deletion trunk/drivers/firmware/efivars.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ MODULE_VERSION(EFIVARS_VERSION);
*/
#define GUID_LEN 36

static bool efivars_pstore_disable =
IS_ENABLED(EFI_VARS_PSTORE_DEFAULT_DISABLE);

module_param_named(pstore_disable, efivars_pstore_disable, bool, 0644);

/*
* The maximum size of VariableName + Data = 1024
* Therefore, it's reasonable to save that much
Expand Down Expand Up @@ -2009,7 +2014,8 @@ int register_efivars(struct efivars *efivars,
if (error)
unregister_efivars(efivars);

efivar_pstore_register(efivars);
if (!efivars_pstore_disable)
efivar_pstore_register(efivars);

register_filesystem(&efivarfs_type);

Expand Down

0 comments on commit 3d4581b

Please sign in to comment.