edd: add default mode CONFIG_EDD_OFF=n, override with edd={on,off}

Add a kernel parameter option to 'edd' to enable/disable BIOS Enhanced Disk
Drive Services.  CONFIG_EDD_OFF disables EDD while still compiling EDD into
the kernel.  Default behavior can be forced using 'edd=on' or 'edd=off' as
a kernel parameter.

[[email protected]: fix kernel-parameters.txt]
Signed-off-by: Tim Gardner <[email protected]>
Signed-off-by: Matt Domsch <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: "Randy.Dunlap" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Tim Gardner 2008-04-29 01:02:45 -07:00 • committed by Linus Torvalds
commit 8c4dd60682
3 changed files with 19 additions and 3 deletions

View file

@ -17,6 +17,15 @@ config EDD
obscure configurations. Most disk controller BIOS vendors do
not yet implement this feature.
config EDD_OFF
bool "Sets default behavior for EDD detection to off"
depends on EDD
default n
help
Say Y if you want EDD disabled by default, even though it is compiled into the
kernel. Say N if you want EDD enabled by default. EDD can be dynamically set
using the kernel parameter 'edd={on|skipmbr|off}'.
config EFI_VARS
tristate "EFI Variable Support via sysfs"
depends on EFI