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
nexedi
linux
Commits
c6816db6
Commit
c6816db6
authored
22 years ago
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: set acpi_disabled = 1 if acpi_bus_init() fails, and check this in the
init functions for the other components.
parent
c73c12e3
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
2 deletions
+17
-2
drivers/acpi/bus.c
drivers/acpi/bus.c
+5
-2
drivers/acpi/debug.c
drivers/acpi/debug.c
+3
-0
drivers/acpi/event.c
drivers/acpi/event.c
+3
-0
drivers/acpi/sleep.c
drivers/acpi/sleep.c
+3
-0
drivers/acpi/system.c
drivers/acpi/system.c
+3
-0
No files found.
drivers/acpi/bus.c
View file @
c6816db6
...
...
@@ -1830,16 +1830,19 @@ static int __init acpi_init (void)
result
=
acpi_bus_init
();
#ifdef CONFIG_PM
if
(
!
result
)
{
#ifdef CONFIG_PM
if
(
!
PM_IS_ACTIVE
())
pm_active
=
1
;
else
{
printk
(
KERN_INFO
PREFIX
"APM is already active, exiting
\n
"
);
acpi_disabled
=
1
;
result
=
-
ENODEV
;
}
}
#endif
}
else
acpi_disabled
=
1
;
return_VALUE
(
result
);
}
...
...
This diff is collapsed.
Click to expand it.
drivers/acpi/debug.c
View file @
c6816db6
...
...
@@ -90,6 +90,9 @@ static int __init acpi_debug_init(void)
ACPI_FUNCTION_TRACE
(
"acpi_debug_init"
);
if
(
acpi_disabled
)
return_VALUE
(
0
);
/* 'debug_layer' [R/W] */
name
=
ACPI_SYSTEM_FILE_DEBUG_LAYER
;
entry
=
create_proc_read_entry
(
name
,
S_IFREG
|
S_IRUGO
|
S_IWUSR
,
acpi_root_dir
,
...
...
This diff is collapsed.
Click to expand it.
drivers/acpi/event.c
View file @
c6816db6
...
...
@@ -122,6 +122,9 @@ static int __init acpi_event_init(void)
ACPI_FUNCTION_TRACE
(
"acpi_event_init"
);
if
(
acpi_disabled
)
return_VALUE
(
0
);
/* 'event' [R] */
entry
=
create_proc_entry
(
"event"
,
S_IRUSR
,
acpi_root_dir
);
if
(
entry
)
...
...
This diff is collapsed.
Click to expand it.
drivers/acpi/sleep.c
View file @
c6816db6
...
...
@@ -658,6 +658,9 @@ static int __init acpi_sleep_init(void)
ACPI_FUNCTION_TRACE
(
"acpi_system_add_fs"
);
if
(
acpi_disabled
)
return_VALUE
(
0
);
printk
(
KERN_INFO
PREFIX
"(supports"
);
for
(
i
=
0
;
i
<
ACPI_S_STATE_COUNT
;
i
++
)
{
u8
type_a
,
type_b
;
...
...
This diff is collapsed.
Click to expand it.
drivers/acpi/system.c
View file @
c6816db6
...
...
@@ -163,6 +163,9 @@ static int __init acpi_system_init (void)
ACPI_FUNCTION_TRACE
(
"acpi_system_init"
);
if
(
acpi_disabled
)
return_VALUE
(
0
);
/* 'info' [R] */
name
=
ACPI_SYSTEM_FILE_INFO
;
entry
=
create_proc_read_entry
(
name
,
...
...
This diff is collapsed.
Click to expand it.
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