Commit 43b2bf3e authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] add "pnpacpi=off"

Signed-off-by: default avatarDavid Shaohua Li <shaohua.li@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 8aea7907
......@@ -989,6 +989,9 @@ running once the system is up.
Format: { parport<nr> | timid | 0 }
See also Documentation/parport.txt.
pnpacpi= [ACPI]
{ off }
pnpbios= [ISAPNP]
{ on | off | curr | res | no-curr | no-res }
......
......@@ -241,10 +241,11 @@ static acpi_status __init pnpacpi_add_device_handler(acpi_handle handle,
return AE_OK;
}
int pnpacpi_disabled __initdata;
int __init pnpacpi_init(void)
{
if (acpi_disabled) {
pnp_info("PnP ACPI: ACPI disable");
if (acpi_disabled || pnpacpi_disabled) {
pnp_info("PnP ACPI: disabled");
return 0;
}
pnp_info("PnP ACPI init");
......@@ -255,4 +256,14 @@ int __init pnpacpi_init(void)
}
subsys_initcall(pnpacpi_init);
static int __init pnpacpi_setup(char *str)
{
if (str == NULL)
return 1;
if (!strncmp(str, "off", 3))
pnpacpi_disabled = 1;
return 1;
}
__setup("pnpacpi=", pnpacpi_setup);
EXPORT_SYMBOL(pnpacpi_protocol);
......@@ -538,10 +538,11 @@ int __init pnpbios_init(void)
return -ENODEV;
}
#ifdef CONFIG_ACPI
if (!acpi_disabled) {
#ifdef CONFIG_PNPACPI
extern int pnpacpi_disabled;
if (!acpi_disabled && !pnpacpi_disabled) {
pnpbios_disabled = 1;
printk(KERN_INFO "PnPBIOS: Disabled by ACPI\n");
printk(KERN_INFO "PnPBIOS: Disabled by ACPI PNP\n");
return -ENODEV;
}
#endif /* CONFIG_ACPI */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment