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
76540969
Commit
76540969
authored
Nov 22, 2013
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge back earlier acpi-hotplug material.
parents
6ce4eac1
ca499fc8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
drivers/acpi/pci_root.c
drivers/acpi/pci_root.c
+3
-0
drivers/acpi/scan.c
drivers/acpi/scan.c
+1
-1
include/acpi/acpi_bus.h
include/acpi/acpi_bus.h
+1
-0
No files found.
drivers/acpi/pci_root.c
View file @
76540969
...
...
@@ -65,6 +65,9 @@ static struct acpi_scan_handler pci_root_handler = {
.
ids
=
root_device_ids
,
.
attach
=
acpi_pci_root_add
,
.
detach
=
acpi_pci_root_remove
,
.
hotplug
=
{
.
ignore
=
true
,
},
};
static
DEFINE_MUTEX
(
osc_lock
);
...
...
drivers/acpi/scan.c
View file @
76540969
...
...
@@ -1772,7 +1772,7 @@ static void acpi_scan_init_hotplug(acpi_handle handle, int type)
*/
list_for_each_entry
(
hwid
,
&
pnp
.
ids
,
list
)
{
handler
=
acpi_scan_match_handler
(
hwid
->
id
,
NULL
);
if
(
handler
)
{
if
(
handler
&&
!
handler
->
hotplug
.
ignore
)
{
acpi_install_notify_handler
(
handle
,
ACPI_SYSTEM_NOTIFY
,
acpi_hotplug_notify_cb
,
handler
);
break
;
...
...
include/acpi/acpi_bus.h
View file @
76540969
...
...
@@ -100,6 +100,7 @@ enum acpi_hotplug_mode {
struct
acpi_hotplug_profile
{
struct
kobject
kobj
;
bool
enabled
:
1
;
bool
ignore
:
1
;
enum
acpi_hotplug_mode
mode
;
};
...
...
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