diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-16 09:45:00 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-16 09:45:00 -0500 |
commit | eb64821243cd6f72646b3ffb9ee2245f83256b32 (patch) | |
tree | 6b57877b8d8ae33b160103ecfa362a2867909b20 /drivers/acpi | |
parent | a7d2472d8145f6d0729317e3cabe2d0f1a14a87a (diff) | |
parent | 4c47cb197e136912f4eecc68ab9410487f2df831 (diff) |
Merge branch 'acpi-config'
* acpi-config:
ACPI: delete CONFIG_ACPI_BLACKLIST_YEAR
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/Kconfig | 11 | ||||
-rw-r--r-- | drivers/acpi/blacklist.c | 35 |
2 files changed, 0 insertions, 46 deletions
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index c95df0b8c880..5d9248526d78 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig | |||
@@ -235,17 +235,6 @@ config ACPI_INITRD_TABLE_OVERRIDE | |||
235 | initrd, therefore it's safe to say Y. | 235 | initrd, therefore it's safe to say Y. |
236 | See Documentation/acpi/initrd_table_override.txt for details | 236 | See Documentation/acpi/initrd_table_override.txt for details |
237 | 237 | ||
238 | config ACPI_BLACKLIST_YEAR | ||
239 | int "Disable ACPI for systems before Jan 1st this year" if X86_32 | ||
240 | default 0 | ||
241 | help | ||
242 | Enter a 4-digit year, e.g., 2001, to disable ACPI by default | ||
243 | on platforms with DMI BIOS date before January 1st that year. | ||
244 | "acpi=force" can be used to override this mechanism. | ||
245 | |||
246 | Enter 0 to disable this mechanism and allow ACPI to | ||
247 | run by default no matter what the year. (default) | ||
248 | |||
249 | config ACPI_DEBUG | 238 | config ACPI_DEBUG |
250 | bool "Debug Statements" | 239 | bool "Debug Statements" |
251 | default n | 240 | default n |
diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c index fb848378d582..078c4f7fe2dd 100644 --- a/drivers/acpi/blacklist.c +++ b/drivers/acpi/blacklist.c | |||
@@ -75,39 +75,6 @@ static struct acpi_blacklist_item acpi_blacklist[] __initdata = { | |||
75 | {""} | 75 | {""} |
76 | }; | 76 | }; |
77 | 77 | ||
78 | #if CONFIG_ACPI_BLACKLIST_YEAR | ||
79 | |||
80 | static int __init blacklist_by_year(void) | ||
81 | { | ||
82 | int year; | ||
83 | |||
84 | /* Doesn't exist? Likely an old system */ | ||
85 | if (!dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL)) { | ||
86 | printk(KERN_ERR PREFIX "no DMI BIOS year, " | ||
87 | "acpi=force is required to enable ACPI\n" ); | ||
88 | return 1; | ||
89 | } | ||
90 | /* 0? Likely a buggy new BIOS */ | ||
91 | if (year == 0) { | ||
92 | printk(KERN_ERR PREFIX "DMI BIOS year==0, " | ||
93 | "assuming ACPI-capable machine\n" ); | ||
94 | return 0; | ||
95 | } | ||
96 | if (year < CONFIG_ACPI_BLACKLIST_YEAR) { | ||
97 | printk(KERN_ERR PREFIX "BIOS age (%d) fails cutoff (%d), " | ||
98 | "acpi=force is required to enable ACPI\n", | ||
99 | year, CONFIG_ACPI_BLACKLIST_YEAR); | ||
100 | return 1; | ||
101 | } | ||
102 | return 0; | ||
103 | } | ||
104 | #else | ||
105 | static inline int blacklist_by_year(void) | ||
106 | { | ||
107 | return 0; | ||
108 | } | ||
109 | #endif | ||
110 | |||
111 | int __init acpi_blacklisted(void) | 78 | int __init acpi_blacklisted(void) |
112 | { | 79 | { |
113 | int i = 0; | 80 | int i = 0; |
@@ -166,8 +133,6 @@ int __init acpi_blacklisted(void) | |||
166 | } | 133 | } |
167 | } | 134 | } |
168 | 135 | ||
169 | blacklisted += blacklist_by_year(); | ||
170 | |||
171 | dmi_check_system(acpi_osi_dmi_table); | 136 | dmi_check_system(acpi_osi_dmi_table); |
172 | 137 | ||
173 | return blacklisted; | 138 | return blacklisted; |