Commit 33596604 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] uml: CPU scheduler update

Update UML for CPU scheduler changes

Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 280a1113
...@@ -148,8 +148,7 @@ static struct task_struct *idle_thread(int cpu) ...@@ -148,8 +148,7 @@ static struct task_struct *idle_thread(int cpu)
current->thread.request.u.thread.proc = idle_proc; current->thread.request.u.thread.proc = idle_proc;
current->thread.request.u.thread.arg = (void *) cpu; current->thread.request.u.thread.arg = (void *) cpu;
new_task = copy_process(CLONE_VM | CLONE_IDLETASK, 0, NULL, 0, NULL, new_task = fork_idle(cpu);
NULL);
if(IS_ERR(new_task)) if(IS_ERR(new_task))
panic("copy_process failed in idle_thread, error = %ld", panic("copy_process failed in idle_thread, error = %ld",
PTR_ERR(new_task)); PTR_ERR(new_task));
...@@ -161,7 +160,6 @@ static struct task_struct *idle_thread(int cpu) ...@@ -161,7 +160,6 @@ static struct task_struct *idle_thread(int cpu)
CHOOSE_MODE(os_write_file(new_task->thread.mode.tt.switch_pipe[1], &c, CHOOSE_MODE(os_write_file(new_task->thread.mode.tt.switch_pipe[1], &c,
sizeof(c)), sizeof(c)),
({ panic("skas mode doesn't support SMP"); })); ({ panic("skas mode doesn't support SMP"); }));
wake_up_forked_process(new_task);
return(new_task); return(new_task);
} }
......
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