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
86fd2f2f
Commit
86fd2f2f
authored
May 27, 2003
by
Ivan Kokshaysky
Committed by
Arnaldo Carvalho de Melo
May 27, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] alpha: fix panic on smp boot (fork_by_hand)
parent
2f50ae4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
arch/alpha/kernel/smp.c
arch/alpha/kernel/smp.c
+4
-7
No files found.
arch/alpha/kernel/smp.c
View file @
86fd2f2f
...
...
@@ -417,12 +417,7 @@ fork_by_hand(void)
/* Don't care about the contents of regs since we'll never
reschedule the forked task. */
struct
pt_regs
regs
;
int
pid
;
pid
=
do_fork
(
CLONE_VM
|
CLONE_IDLETASK
,
0
,
&
regs
,
0
,
NULL
,
NULL
);
if
(
pid
<
0
)
return
NULL
;
return
find_task_by_pid
(
pid
);
return
copy_process
(
CLONE_VM
|
CLONE_IDLETASK
,
0
,
&
regs
,
0
,
NULL
,
NULL
);
}
/*
...
...
@@ -441,9 +436,11 @@ smp_boot_one_cpu(int cpuid)
wish. We can't use kernel_thread since we must avoid
rescheduling the child. */
idle
=
fork_by_hand
();
if
(
!
idle
)
if
(
IS_ERR
(
idle
)
)
panic
(
"failed fork for CPU %d"
,
cpuid
);
wake_up_forked_process
(
idle
);
init_idle
(
idle
,
cpuid
);
unhash_process
(
idle
);
...
...
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