Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117284
b: refs/heads/master
c: 6415e12
h: refs/heads/master
v: v3
  • Loading branch information
Zhao Yakui authored and Len Brown committed Oct 22, 2008
1 parent 8ff3bf7 commit 0ea8377
Show file tree
Hide file tree
Showing 2 changed files with 23 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: f5adfaa372c76423b6e8e4727a9701330374f364
refs/heads/master: 6415e12ba0f92a54f02d9c4ecaa3c82f35f3d335
23 changes: 22 additions & 1 deletion trunk/drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,23 @@ EXPORT_SYMBOL(acpi_root_dir);

#define STRUCT_TO_INT(s) (*((int*)&s))

static int set_power_nocheck(const struct dmi_system_id *id)
{
printk(KERN_NOTICE PREFIX "%s detected - "
"disable power check in power transistion\n", id->ident);
acpi_power_nocheck = 1;
return 0;
}
static struct dmi_system_id __cpuinitdata power_nocheck_dmi_table[] = {
{
set_power_nocheck, "HP Pavilion 05", {
DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies LTD"),
DMI_MATCH(DMI_SYS_VENDOR, "HP Pavilion 05"),
DMI_MATCH(DMI_PRODUCT_VERSION, "2001211RE101GLEND") }, NULL},
{},
};


/* --------------------------------------------------------------------------
Device Management
-------------------------------------------------------------------------- */
Expand Down Expand Up @@ -830,7 +847,11 @@ static int __init acpi_init(void)
}
} else
disable_acpi();

/*
* If the laptop falls into the DMI check table, the power state check
* will be disabled in the course of device power transistion.
*/
dmi_check_system(power_nocheck_dmi_table);
return result;
}

Expand Down

0 comments on commit 0ea8377

Please sign in to comment.