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
b3690fe2
Commit
b3690fe2
authored
Jan 19, 2004
by
Ben Collins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Move setting of current_thread_info()->cpu to smp_prepare_boot_cpu()
parent
e97d374c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
arch/sparc64/kernel/smp.c
arch/sparc64/kernel/smp.c
+1
-0
arch/sparc64/kernel/traps.c
arch/sparc64/kernel/traps.c
+0
-4
No files found.
arch/sparc64/kernel/smp.c
View file @
b3690fe2
...
...
@@ -1261,6 +1261,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
void
__devinit
smp_prepare_boot_cpu
(
void
)
{
current_thread_info
()
->
cpu
=
hard_smp_processor_id
();
cpu_set
(
smp_processor_id
(),
cpu_online_map
);
cpu_set
(
smp_processor_id
(),
phys_cpu_present_map
);
}
...
...
arch/sparc64/kernel/traps.c
View file @
b3690fe2
...
...
@@ -2043,8 +2043,4 @@ void __init trap_init(void)
*/
atomic_inc
(
&
init_mm
.
mm_count
);
current
->
active_mm
=
&
init_mm
;
#ifdef CONFIG_SMP
current_thread_info
()
->
cpu
=
hard_smp_processor_id
();
#endif
}
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