]> git.hungrycats.org Git - linux/commitdiff
Fix up architectures for task list changes
authorLinus Torvalds <torvalds@home.transmeta.com>
Fri, 15 Mar 2002 07:12:06 +0000 (23:12 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 15 Mar 2002 07:12:06 +0000 (23:12 -0800)
12 files changed:
arch/alpha/kernel/smp.c
arch/ia64/kernel/smpboot.c
arch/mips/kernel/smp.c
arch/mips64/sgi-ip27/ip27-init.c
arch/ppc/kernel/smp.c
arch/ppc64/kernel/smp.c
arch/s390/kernel/smp.c
arch/s390x/kernel/smp.c
arch/sparc/kernel/sun4d_smp.c
arch/sparc/kernel/sun4m_smp.c
arch/sparc64/kernel/smp.c
arch/x86_64/kernel/smpboot.c

index bf927dc702bfa454d97357b04e5ad855d7403c2b..43370f3664c80e1d348a38f3fbc0277d00d4b3fb 100644 (file)
@@ -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);
 
index 16eaaa5f8f9e6b491f6a5efa1f6144a53497bd9a..c339635170d28d1ebd1770892960ed6b7ee026ef 100644 (file)
@@ -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);
 
index b94a75eb2a6c80f13d61442f6d431c9d68dbcc92..a82e0b9b9923a5e85fd24b621ad084b79b6bad05 100644 (file)
@@ -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;
index 4c5c7439f499f350937527849de342e44c8f454f..d6f4a5ef34312b364032130eb835d76bf51a95b5 100644 (file)
@@ -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);
index 78355f6b3df09181edc9f55d1d340a27b16c6b59..7763d17972df7f6a34231437833cc41509eb9f14 100644 (file)
@@ -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);
index 86de4b6a9f4b705e4c3f871df1703c04b200d31b..7afcb62a477c76b3e9ad92939df8b9e53557e77c 100644 (file)
@@ -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);
 
index 6a836af79c7628d542d03688e30447ef3af37356..9e1c5dd72432a38ffb07143b0f8e0fddc90997eb 100644 (file)
@@ -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;
index fe9593dbf05d7a3b590bedf41b4c2e2a63ae5428..4f781c3d22e32ec1c471417405dfb4b9ea38452c 100644 (file)
@@ -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;
index a63ffb0670dd6590c5e696a01dcd96fcc1c4bd54..46e199a637d3f0db72f0e052f48617dd05eed6f8 100644 (file)
@@ -220,7 +220,7 @@ void __init smp4d_boot_cpus(void)
 
                        cpucount++;
 
-                       p = init_task.prev_task;
+                       p = prev_task(&init_task);
 
                        p->cpu = i;
 
index 4cd8f8bb53938b7cc0d60adadcbc7701d2621b6e..e3a730ab55c0ca0c20269aca814285d683a821e0 100644 (file)
@@ -193,7 +193,7 @@ void __init smp4m_boot_cpus(void)
 
                        cpucount++;
 
-                       p = init_task.prev_task;
+                       p = prev_task(&init_task);
 
                        p->cpu = i;
 
index afafae173c04343d4fb88f08a32fce620686ac80..24d26dbdda97369f38e26f5dfa8559f1120a3fc3 100644 (file)
@@ -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);
 
index c185cc8f7ddde8da6cc9778a575b9bae267cbb29..a3a146689632637c9e67d122b4fd39998f0fbe2f 100644 (file)
@@ -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);