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
779f1643
Commit
779f1643
authored
Mar 14, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up architectures for task list changes
parent
1b387f80
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
13 additions
and
13 deletions
+13
-13
arch/alpha/kernel/smp.c
arch/alpha/kernel/smp.c
+1
-1
arch/ia64/kernel/smpboot.c
arch/ia64/kernel/smpboot.c
+1
-1
arch/mips/kernel/smp.c
arch/mips/kernel/smp.c
+2
-2
arch/mips64/sgi-ip27/ip27-init.c
arch/mips64/sgi-ip27/ip27-init.c
+1
-1
arch/ppc/kernel/smp.c
arch/ppc/kernel/smp.c
+1
-1
arch/ppc64/kernel/smp.c
arch/ppc64/kernel/smp.c
+1
-1
arch/s390/kernel/smp.c
arch/s390/kernel/smp.c
+1
-1
arch/s390x/kernel/smp.c
arch/s390x/kernel/smp.c
+1
-1
arch/sparc/kernel/sun4d_smp.c
arch/sparc/kernel/sun4d_smp.c
+1
-1
arch/sparc/kernel/sun4m_smp.c
arch/sparc/kernel/sun4m_smp.c
+1
-1
arch/sparc64/kernel/smp.c
arch/sparc64/kernel/smp.c
+1
-1
arch/x86_64/kernel/smpboot.c
arch/x86_64/kernel/smpboot.c
+1
-1
No files found.
arch/alpha/kernel/smp.c
View file @
779f1643
...
...
@@ -460,7 +460,7 @@ smp_boot_one_cpu(int cpuid, int cpunum)
if
(
fork_by_hand
()
<
0
)
panic
(
"failed fork for CPU %d"
,
cpuid
);
idle
=
init_task
.
prev_task
;
idle
=
prev_task
(
&
init_task
)
;
if
(
!
idle
)
panic
(
"No idle process for CPU %d"
,
cpuid
);
...
...
arch/ia64/kernel/smpboot.c
View file @
779f1643
...
...
@@ -413,7 +413,7 @@ do_boot_cpu (int sapicid)
* We remove it from the pidhash and the runqueue
* once we got the process:
*/
idle
=
init_task
.
prev_task
;
idle
=
prev_task
(
&
init_task
)
;
if
(
!
idle
)
panic
(
"No idle process for CPU %d"
,
cpu
);
...
...
arch/mips/kernel/smp.c
View file @
779f1643
...
...
@@ -123,7 +123,7 @@ void __init smp_boot_cpus(void)
/* Spawn a new process normally. Grab a pointer to
its task struct so we can mess with it */
do_fork
(
CLONE_VM
|
CLONE_PID
,
0
,
&
regs
,
0
);
p
=
init_task
.
prev_task
;
p
=
prev_task
(
&
init_task
)
;
/* Schedule the first task manually */
p
->
processor
=
i
;
...
...
@@ -152,7 +152,7 @@ void __init smp_boot_cpus(void)
* Linux can schedule processes on this slave.
*/
kernel_thread(0, NULL, CLONE_PID);
p =
init_task.prev_task
;
p =
prev_task(&init_task)
;
sprintf(p->comm, "%s%d", "Idle", i);
init_tasks[i] = p;
p->processor = i;
...
...
arch/mips64/sgi-ip27/ip27-init.c
View file @
779f1643
...
...
@@ -491,7 +491,7 @@ void allowboot(void)
* Linux can schedule processes on this slave.
*/
kernel_thread
(
0
,
NULL
,
CLONE_PID
);
p
=
init_task
.
prev_task
;
p
=
prev_task
(
&
init_task
)
;
sprintf
(
p
->
comm
,
"%s%d"
,
"Idle"
,
num_cpus
);
init_tasks
[
num_cpus
]
=
p
;
alloc_cpupda
(
cpu
,
num_cpus
);
...
...
arch/ppc/kernel/smp.c
View file @
779f1643
...
...
@@ -344,7 +344,7 @@ void __init smp_boot_cpus(void)
memset
(
&
regs
,
0
,
sizeof
(
struct
pt_regs
));
if
(
do_fork
(
CLONE_VM
|
CLONE_PID
,
0
,
&
regs
,
0
)
<
0
)
panic
(
"failed fork for CPU %d"
,
i
);
p
=
init_task
.
prev_task
;
p
=
prev_task
(
&
init_task
)
;
if
(
!
p
)
panic
(
"No idle task for CPU %d"
,
i
);
init_idle
(
p
,
i
);
...
...
arch/ppc64/kernel/smp.c
View file @
779f1643
...
...
@@ -669,7 +669,7 @@ void __init smp_boot_cpus(void)
if
(
do_fork
(
CLONE_VM
|
CLONE_PID
,
0
,
&
regs
,
0
)
<
0
)
panic
(
"failed fork for CPU %d"
,
i
);
p
=
init_task
.
prev_task
;
p
=
prev_task
(
&
init_task
)
;
if
(
!
p
)
panic
(
"No idle task for CPU %d"
,
i
);
...
...
arch/s390/kernel/smp.c
View file @
779f1643
...
...
@@ -528,7 +528,7 @@ static void __init do_boot_cpu(int cpu)
* We remove it from the pidhash and the runqueue
* once we got the process:
*/
idle
=
init_task
.
prev_task
;
idle
=
prev_task
(
&
init_task
)
;
if
(
!
idle
)
panic
(
"No idle process for CPU %d"
,
cpu
);
idle
->
processor
=
cpu
;
...
...
arch/s390x/kernel/smp.c
View file @
779f1643
...
...
@@ -507,7 +507,7 @@ static void __init do_boot_cpu(int cpu)
* We remove it from the pidhash and the runqueue
* once we got the process:
*/
idle
=
init_task
.
prev_task
;
idle
=
prev_task
(
&
init_task
)
;
if
(
!
idle
)
panic
(
"No idle process for CPU %d"
,
cpu
);
idle
->
processor
=
cpu
;
...
...
arch/sparc/kernel/sun4d_smp.c
View file @
779f1643
...
...
@@ -220,7 +220,7 @@ void __init smp4d_boot_cpus(void)
cpucount
++
;
p
=
init_task
.
prev_task
;
p
=
prev_task
(
&
init_task
)
;
p
->
cpu
=
i
;
...
...
arch/sparc/kernel/sun4m_smp.c
View file @
779f1643
...
...
@@ -193,7 +193,7 @@ void __init smp4m_boot_cpus(void)
cpucount
++
;
p
=
init_task
.
prev_task
;
p
=
prev_task
(
&
init_task
)
;
p
->
cpu
=
i
;
...
...
arch/sparc64/kernel/smp.c
View file @
779f1643
...
...
@@ -270,7 +270,7 @@ void __init smp_boot_cpus(void)
kernel_thread
(
NULL
,
NULL
,
CLONE_PID
);
cpucount
++
;
p
=
init_task
.
prev_task
;
p
=
prev_task
(
&
init_task
)
;
init_idle
(
p
,
i
);
...
...
arch/x86_64/kernel/smpboot.c
View file @
779f1643
...
...
@@ -559,7 +559,7 @@ static void __init do_boot_cpu (int apicid)
* We remove it from the pidhash and the runqueue
* once we got the process:
*/
idle
=
init_task
.
prev_task
;
idle
=
prev_task
(
&
init_task
)
;
if
(
!
idle
)
panic
(
"No idle process for CPU %d"
,
cpu
);
...
...
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