]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/x86/kernel/acpi/sleep_32.c
x86: coding style fixes to arch/x86/kernel/acpi/sleep.c
[mirror_ubuntu-artful-kernel.git] / arch / x86 / kernel / acpi / sleep_32.c
CommitLineData
1da177e4
LT
1/*
2 * sleep.c - x86-specific ACPI sleep support.
3 *
4 * Copyright (C) 2001-2003 Patrick Mochel
5 * Copyright (C) 2001-2003 Pavel Machek <pavel@suse.cz>
6 */
7
8#include <linux/acpi.h>
9#include <linux/bootmem.h>
0f8133a8 10#include <linux/dmi.h>
55b2355e
SL
11#include <linux/cpumask.h>
12
1da177e4 13#include <asm/smp.h>
1da177e4 14
77afcf78
PM
15/* Ouch, we want to delete this. We already have better version in userspace, in
16 s2ram from suspend.sf.net project */
1855256c 17static __init int reset_videomode_after_s3(const struct dmi_system_id *d)
0f8133a8 18{
77afcf78 19 acpi_realmode_flags |= 2;
0f8133a8
AP
20 return 0;
21}
22
23static __initdata struct dmi_system_id acpisleep_dmi_table[] = {
4be44fcd
LB
24 { /* Reset video mode after returning from ACPI S3 sleep */
25 .callback = reset_videomode_after_s3,
26 .ident = "Toshiba Satellite 4030cdt",
27 .matches = {
28 DMI_MATCH(DMI_PRODUCT_NAME, "S4030CDT/4.3"),
29 },
30 },
31 {}
0f8133a8
AP
32};
33
34static int __init acpisleep_dmi_init(void)
35{
36 dmi_check_system(acpisleep_dmi_table);
37 return 0;
38}
39
40core_initcall(acpisleep_dmi_init);