summaryrefslogtreecommitdiff
path: root/arch/um/kernel/process.c
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2013-09-23 19:38:03 +0400
committerRichard Weinberger <richard@nod.at>2013-11-17 14:27:35 +0400
commita1850e9c7282db1c19a18093a945d5e84bfe7418 (patch)
tree8d9d3eafc0f045e2ff6c4da8108fb731ecfcda94 /arch/um/kernel/process.c
parentf72c22e45e8f8fe78c7f793d983bee5bed63497e (diff)
downloadlinux-a1850e9c7282db1c19a18093a945d5e84bfe7418.tar.xz
um: Get rid of thread_struct->saved_task
As we have a sane show_stack() now, we can drop the ->saved_task hack. Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/kernel/process.c')
-rw-r--r--arch/um/kernel/process.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c
index bbcef522bcb1..eecc4142764c 100644
--- a/arch/um/kernel/process.c
+++ b/arch/um/kernel/process.c
@@ -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;
}