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
b727a602
Commit
b727a602
authored
Feb 22, 2005
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge do_boot_cpu() into the new style __cpu_up().
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
0ac35480
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
21 deletions
+9
-21
arch/mips/kernel/smp.c
arch/mips/kernel/smp.c
+9
-21
No files found.
arch/mips/kernel/smp.c
View file @
b727a602
...
...
@@ -248,23 +248,28 @@ void __devinit smp_prepare_boot_cpu(void)
}
/*
* Startup the CPU with this logical number
* Called once for each "cpu_possible(cpu)". Needs to spin up the cpu
* and keep control until "cpu_online(cpu)" is set. Note: cpu is
* physical, not logical.
*/
static
int
__init
do_boot_cpu
(
int
cpu
)
int
__devinit
__cpu_up
(
unsigned
int
cpu
)
{
struct
task_struct
*
idle
;
/*
* Processor goes to start_secondary(), sets online flag
* The following code is purely to make sure
* Linux can schedule processes on this slave.
*/
idle
=
fork_idle
(
cpu
);
if
(
IS_ERR
(
idle
))
panic
(
"failed fork for CPU %d
\n
"
,
cpu
);
panic
(
KERN_ERR
"Fork failed for CPU %d
"
,
cpu
);
prom_boot_secondary
(
cpu
,
idle
);
/* XXXKW timeout */
/*
* Trust is futile. We should really have timeouts ...
*/
while
(
!
cpu_isset
(
cpu
,
cpu_callin_map
))
udelay
(
100
);
...
...
@@ -273,23 +278,6 @@ static int __init do_boot_cpu(int cpu)
return
0
;
}
/*
* Called once for each "cpu_possible(cpu)". Needs to spin up the cpu
* and keep control until "cpu_online(cpu)" is set. Note: cpu is
* physical, not logical.
*/
int
__devinit
__cpu_up
(
unsigned
int
cpu
)
{
int
ret
;
/* Processor goes to start_secondary(), sets online flag */
ret
=
do_boot_cpu
(
cpu
);
if
(
ret
<
0
)
return
ret
;
return
0
;
}
/* Not really SMP stuff ... */
int
setup_profiling_timer
(
unsigned
int
multiplier
)
{
...
...
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