Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
eb648212
Commit
eb648212
authored
Nov 16, 2013
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'acpi-config'
* acpi-config: ACPI: delete CONFIG_ACPI_BLACKLIST_YEAR
parents
a7d2472d
4c47cb19
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
46 deletions
+0
-46
drivers/acpi/Kconfig
drivers/acpi/Kconfig
+0
-11
drivers/acpi/blacklist.c
drivers/acpi/blacklist.c
+0
-35
No files found.
drivers/acpi/Kconfig
View file @
eb648212
...
...
@@ -235,17 +235,6 @@ config ACPI_INITRD_TABLE_OVERRIDE
initrd, therefore it's safe to say Y.
See Documentation/acpi/initrd_table_override.txt for details
config ACPI_BLACKLIST_YEAR
int "Disable ACPI for systems before Jan 1st this year" if X86_32
default 0
help
Enter a 4-digit year, e.g., 2001, to disable ACPI by default
on platforms with DMI BIOS date before January 1st that year.
"acpi=force" can be used to override this mechanism.
Enter 0 to disable this mechanism and allow ACPI to
run by default no matter what the year. (default)
config ACPI_DEBUG
bool "Debug Statements"
default n
...
...
drivers/acpi/blacklist.c
View file @
eb648212
...
...
@@ -75,39 +75,6 @@ static struct acpi_blacklist_item acpi_blacklist[] __initdata = {
{
""
}
};
#if CONFIG_ACPI_BLACKLIST_YEAR
static
int
__init
blacklist_by_year
(
void
)
{
int
year
;
/* Doesn't exist? Likely an old system */
if
(
!
dmi_get_date
(
DMI_BIOS_DATE
,
&
year
,
NULL
,
NULL
))
{
printk
(
KERN_ERR
PREFIX
"no DMI BIOS year, "
"acpi=force is required to enable ACPI
\n
"
);
return
1
;
}
/* 0? Likely a buggy new BIOS */
if
(
year
==
0
)
{
printk
(
KERN_ERR
PREFIX
"DMI BIOS year==0, "
"assuming ACPI-capable machine
\n
"
);
return
0
;
}
if
(
year
<
CONFIG_ACPI_BLACKLIST_YEAR
)
{
printk
(
KERN_ERR
PREFIX
"BIOS age (%d) fails cutoff (%d), "
"acpi=force is required to enable ACPI
\n
"
,
year
,
CONFIG_ACPI_BLACKLIST_YEAR
);
return
1
;
}
return
0
;
}
#else
static
inline
int
blacklist_by_year
(
void
)
{
return
0
;
}
#endif
int
__init
acpi_blacklisted
(
void
)
{
int
i
=
0
;
...
...
@@ -166,8 +133,6 @@ int __init acpi_blacklisted(void)
}
}
blacklisted
+=
blacklist_by_year
();
dmi_check_system
(
acpi_osi_dmi_table
);
return
blacklisted
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment