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);
* 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);
/* 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, ®s, 0);
- p = init_task.prev_task;
+ p = prev_task(&init_task);
/* Schedule the first task manually */
p->processor = i;
* 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;
* 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);
memset(®s, 0, sizeof(struct pt_regs));
if (do_fork(CLONE_VM|CLONE_PID, 0, ®s, 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);
if (do_fork(CLONE_VM|CLONE_PID, 0, ®s, 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);
* 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;
* 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;
cpucount++;
- p = init_task.prev_task;
+ p = prev_task(&init_task);
p->cpu = i;
cpucount++;
- p = init_task.prev_task;
+ p = prev_task(&init_task);
p->cpu = i;
kernel_thread(NULL, NULL, CLONE_PID);
cpucount++;
- p = init_task.prev_task;
+ p = prev_task(&init_task);
init_idle(p, i);
* 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);