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
b74e58ec
Commit
b74e58ec
authored
Jun 20, 2002
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Plain Diff
Merge elte.hu:/home/mingo/BK/v
into elte.hu:/home/mingo/BK/linux-2.5-sched
parents
e170a233
edcd262d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
kernel/sched.c
kernel/sched.c
+9
-7
No files found.
kernel/sched.c
View file @
b74e58ec
...
...
@@ -1775,6 +1775,8 @@ void set_cpus_allowed(task_t *p, unsigned long new_mask)
preempt_enable
();
}
static
__initdata
int
master_migration_thread
;
static
int
migration_thread
(
void
*
bind_cpu
)
{
int
cpu
=
(
int
)
(
long
)
bind_cpu
;
...
...
@@ -1786,14 +1788,12 @@ static int migration_thread(void * bind_cpu)
sigfillset
(
&
current
->
blocked
);
set_fs
(
KERNEL_DS
);
/* FIXME: First CPU may not be zero, but this crap code
vanishes with hotplug cpu patch anyway. --RR */
/*
* The first migration thread is started on
CPU #0. This one can
* migrate the other migration threads to their destination CPUs.
* The first migration thread is started on
the boot CPU, it
* migrate
s
the other migration threads to their destination CPUs.
*/
if
(
cpu
!=
0
)
{
while
(
!
cpu_rq
(
0
)
->
migration_thread
)
if
(
cpu
!=
master_migration_thread
)
{
while
(
!
cpu_rq
(
master_migration_thread
)
->
migration_thread
)
yield
();
set_cpus_allowed
(
current
,
1UL
<<
cpu
);
}
...
...
@@ -1857,7 +1857,9 @@ void __init migration_init(void)
{
int
cpu
;
current
->
cpus_allowed
=
1UL
<<
0
;
master_migration_thread
=
smp_processor_id
();
current
->
cpus_allowed
=
1UL
<<
master_migration_thread
;
for
(
cpu
=
0
;
cpu
<
NR_CPUS
;
cpu
++
)
{
if
(
!
cpu_online
(
cpu
))
continue
;
...
...
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