Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
6a614877
Commit
6a614877
authored
Aug 02, 2009
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugzilla-13751' into release
parents
f63440ef
74b58208
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
drivers/acpi/osl.c
drivers/acpi/osl.c
+25
-0
No files found.
drivers/acpi/osl.c
View file @
6a614877
...
...
@@ -189,11 +189,36 @@ acpi_status __init acpi_os_initialize(void)
return
AE_OK
;
}
static
void
bind_to_cpu0
(
struct
work_struct
*
work
)
{
set_cpus_allowed
(
current
,
cpumask_of_cpu
(
0
));
kfree
(
work
);
}
static
void
bind_workqueue
(
struct
workqueue_struct
*
wq
)
{
struct
work_struct
*
work
;
work
=
kzalloc
(
sizeof
(
struct
work_struct
),
GFP_KERNEL
);
INIT_WORK
(
work
,
bind_to_cpu0
);
queue_work
(
wq
,
work
);
}
acpi_status
acpi_os_initialize1
(
void
)
{
/*
* On some machines, a software-initiated SMI causes corruption unless
* the SMI runs on CPU 0. An SMI can be initiated by any AML, but
* typically it's done in GPE-related methods that are run via
* workqueues, so we can avoid the known corruption cases by binding
* the workqueues to CPU 0.
*/
kacpid_wq
=
create_singlethread_workqueue
(
"kacpid"
);
bind_workqueue
(
kacpid_wq
);
kacpi_notify_wq
=
create_singlethread_workqueue
(
"kacpi_notify"
);
bind_workqueue
(
kacpi_notify_wq
);
kacpi_hotplug_wq
=
create_singlethread_workqueue
(
"kacpi_hotplug"
);
bind_workqueue
(
kacpi_hotplug_wq
);
BUG_ON
(
!
kacpid_wq
);
BUG_ON
(
!
kacpi_notify_wq
);
BUG_ON
(
!
kacpi_hotplug_wq
);
...
...
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