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
b37d40d1
Commit
b37d40d1
authored
Jul 15, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Fix leak when DR added cpu does not bootup.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
b53bcb67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
arch/sparc64/kernel/smp.c
arch/sparc64/kernel/smp.c
+6
-6
No files found.
arch/sparc64/kernel/smp.c
View file @
b37d40d1
...
...
@@ -90,7 +90,6 @@ static volatile unsigned long callin_flag = 0;
void
__devinit
smp_callin
(
void
)
{
int
cpuid
=
hard_smp_processor_id
();
struct
trap_per_cpu
*
tb
=
&
trap_block
[
cpuid
];;
__local_per_cpu_offset
=
__per_cpu_offset
(
cpuid
);
...
...
@@ -119,11 +118,6 @@ void __devinit smp_callin(void)
atomic_inc
(
&
init_mm
.
mm_count
);
current
->
active_mm
=
&
init_mm
;
if
(
tb
->
hdesc
)
{
kfree
(
tb
->
hdesc
);
tb
->
hdesc
=
NULL
;
}
while
(
!
cpu_isset
(
cpuid
,
smp_commenced_mask
))
rmb
();
...
...
@@ -345,6 +339,7 @@ static struct thread_info *cpu_new_thread = NULL;
static
int
__devinit
smp_boot_one_cpu
(
unsigned
int
cpu
)
{
struct
trap_per_cpu
*
tb
=
&
trap_block
[
cpu
];
unsigned
long
entry
=
(
unsigned
long
)(
&
sparc64_cpu_startup
);
unsigned
long
cookie
=
...
...
@@ -389,6 +384,11 @@ static int __devinit smp_boot_one_cpu(unsigned int cpu)
}
cpu_new_thread
=
NULL
;
if
(
tb
->
hdesc
)
{
kfree
(
tb
->
hdesc
);
tb
->
hdesc
=
NULL
;
}
return
ret
;
}
...
...
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