Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102003
b: refs/heads/master
c: 741438b
h: refs/heads/master
i:
  102001: 1931267
  101999: a793162
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Andi Kleen committed Jul 16, 2008
1 parent 202732e commit 88c3492
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 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: a80a6da145bab8ee77af304961fc926de7a8ac84
refs/heads/master: 741438b5008791327d2183cebcd7ac9cfad64ec6
31 changes: 0 additions & 31 deletions trunk/drivers/acpi/sleep/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ static u32 acpi_suspend_states[] = {
[PM_SUSPEND_MAX] = ACPI_STATE_S5
};

static int init_8259A_after_S1;

/**
* acpi_suspend_begin - Set the target system sleep state to the state
* associated with given @pm_state, if supported.
Expand Down Expand Up @@ -185,13 +183,6 @@ static void acpi_suspend_finish(void)
acpi_set_firmware_waking_vector((acpi_physical_address) 0);

acpi_target_sleep_state = ACPI_STATE_S0;

#ifdef CONFIG_X86
if (init_8259A_after_S1) {
printk("Broken toshiba laptop -> kicking interrupts\n");
init_8259A(0);
}
#endif
}

/**
Expand Down Expand Up @@ -231,26 +222,6 @@ static struct platform_suspend_ops acpi_suspend_ops = {
.finish = acpi_suspend_finish,
.end = acpi_suspend_end,
};

/*
* Toshiba fails to preserve interrupts over S1, reinitialization
* of 8259 is needed after S1 resume.
*/
static int __init init_ints_after_s1(const struct dmi_system_id *d)
{
printk(KERN_WARNING "%s with broken S1 detected.\n", d->ident);
init_8259A_after_S1 = 1;
return 0;
}

static struct dmi_system_id __initdata acpisleep_dmi_table[] = {
{
.callback = init_ints_after_s1,
.ident = "Toshiba Satellite 4030cdt",
.matches = {DMI_MATCH(DMI_PRODUCT_NAME, "S4030CDT/4.3"),},
},
{},
};
#endif /* CONFIG_SUSPEND */

#ifdef CONFIG_HIBERNATION
Expand Down Expand Up @@ -472,8 +443,6 @@ int __init acpi_sleep_init(void)
u8 type_a, type_b;
#ifdef CONFIG_SUSPEND
int i = 0;

dmi_check_system(acpisleep_dmi_table);
#endif

if (acpi_disabled)
Expand Down

0 comments on commit 88c3492

Please sign in to comment.