|
@@ -82,19 +82,8 @@ void *__switch_to(struct task_struct *from, struct task_struct *to)
|
|
|
to->thread.prev_sched = from;
|
|
|
set_current(to);
|
|
|
|
|
|
- do {
|
|
|
- current->thread.saved_task = NULL;
|
|
|
-
|
|
|
- switch_threads(&from->thread.switch_buf,
|
|
|
- &to->thread.switch_buf);
|
|
|
-
|
|
|
- arch_switch_to(current);
|
|
|
-
|
|
|
- if (current->thread.saved_task)
|
|
|
- show_regs(&(current->thread.regs));
|
|
|
- to = current->thread.saved_task;
|
|
|
- from = current;
|
|
|
- } while (current->thread.saved_task);
|
|
|
+ switch_threads(&from->thread.switch_buf, &to->thread.switch_buf);
|
|
|
+ arch_switch_to(current);
|
|
|
|
|
|
return current->thread.prev_sched;
|
|
|
}
|