Commit 779f1643 authored by Linus Torvalds's avatar Linus Torvalds

Fix up architectures for task list changes

parent 1b387f80
......@@ -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);
......
......@@ -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);
......
......@@ -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;
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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;
......
......@@ -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;
......
......@@ -220,7 +220,7 @@ void __init smp4d_boot_cpus(void)
cpucount++;
p = init_task.prev_task;
p = prev_task(&init_task);
p->cpu = i;
......
......@@ -193,7 +193,7 @@ void __init smp4m_boot_cpus(void)
cpucount++;
p = init_task.prev_task;
p = prev_task(&init_task);
p->cpu = i;
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment