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
2bd00736
Commit
2bd00736
authored
Feb 27, 2010
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: Yosemite: Convert SMP startup lock to arch spinlock.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
1a73f047
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arch/mips/pmc-sierra/yosemite/smp.c
arch/mips/pmc-sierra/yosemite/smp.c
+4
-4
No files found.
arch/mips/pmc-sierra/yosemite/smp.c
View file @
2bd00736
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#define LAUNCHSTACK_SIZE 256
#define LAUNCHSTACK_SIZE 256
static
__cpuinitdata
DEFINE_SPINLOCK
(
launch_lock
)
;
static
__cpuinitdata
arch_spinlock_t
launch_lock
=
__ARCH_SPIN_LOCK_UNLOCKED
;
static
unsigned
long
secondary_sp
__cpuinitdata
;
static
unsigned
long
secondary_sp
__cpuinitdata
;
static
unsigned
long
secondary_gp
__cpuinitdata
;
static
unsigned
long
secondary_gp
__cpuinitdata
;
...
@@ -20,7 +20,7 @@ static void __init prom_smp_bootstrap(void)
...
@@ -20,7 +20,7 @@ static void __init prom_smp_bootstrap(void)
{
{
local_irq_disable
();
local_irq_disable
();
while
(
spin_is_locked
(
&
launch_lock
));
while
(
arch_
spin_is_locked
(
&
launch_lock
));
__asm__
__volatile__
(
__asm__
__volatile__
(
" move $sp, %0
\n
"
" move $sp, %0
\n
"
...
@@ -37,7 +37,7 @@ static void __init prom_smp_bootstrap(void)
...
@@ -37,7 +37,7 @@ static void __init prom_smp_bootstrap(void)
*/
*/
void
__init
prom_grab_secondary
(
void
)
void
__init
prom_grab_secondary
(
void
)
{
{
spin_lock
(
&
launch_lock
);
arch_
spin_lock
(
&
launch_lock
);
pmon_cpustart
(
1
,
&
prom_smp_bootstrap
,
pmon_cpustart
(
1
,
&
prom_smp_bootstrap
,
launchstack
+
LAUNCHSTACK_SIZE
,
0
);
launchstack
+
LAUNCHSTACK_SIZE
,
0
);
...
@@ -138,7 +138,7 @@ static void __cpuinit yos_boot_secondary(int cpu, struct task_struct *idle)
...
@@ -138,7 +138,7 @@ static void __cpuinit yos_boot_secondary(int cpu, struct task_struct *idle)
secondary_sp
=
sp
;
secondary_sp
=
sp
;
secondary_gp
=
gp
;
secondary_gp
=
gp
;
spin_unlock
(
&
launch_lock
);
arch_
spin_unlock
(
&
launch_lock
);
}
}
/*
/*
...
...
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