efivars: Allow disabling use as a pstore backend
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 7 Mar 2013 17:40:17 +0000 (11:40 -0600)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 27 Mar 2013 02:41:19 +0000 (02:41 +0000)
commitc3dc62cc3a32d9a1c21f2c8fbd970dfd779eeb71
tree90c3f11cb9864ee24cbbb578958614781ea799ba
parent5a8c68b488f86543cc2e1b79f890c33a83b7de12
efivars: Allow disabling use as a pstore backend

commit ed9dc8ce7a1c8115dba9483a9b51df8b63a2e0ef upstream.

Add a new option, CONFIG_EFI_VARS_PSTORE, which can be set to N to
avoid using efivars as a backend to pstore, as some users may want to
compile out the code completely.

Set the default to Y to maintain backwards compatability, since this
feature has always been enabled until now.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Cc: Josh Boyer <jwboyer@redhat.com>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Seiji Aguchi <seiji.aguchi@hds.com>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/firmware/Kconfig
drivers/firmware/efivars.c