Loading arch/um/drivers/mconsole_kern.c +2 −4 Original line number Diff line number Diff line Loading @@ -645,11 +645,9 @@ void mconsole_sysrq(struct mc_request *req) static void stack_proc(void *arg) { struct task_struct *from = current, *to = arg; struct task_struct *task = arg; to->thread.saved_task = from; rcu_user_hooks_switch(from, to); switch_to(from, to, from); show_stack(task, NULL); } /* Loading arch/um/include/asm/processor-generic.h +0 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ struct task_struct; struct mm_struct; struct thread_struct { struct task_struct *saved_task; struct pt_regs regs; struct pt_regs *segv_regs; int singlestep_syscall; Loading arch/um/kernel/process.c +2 −13 Original line number Diff line number Diff line Loading @@ -82,20 +82,9 @@ 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); 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); return current->thread.prev_sched; } Loading Loading
arch/um/drivers/mconsole_kern.c +2 −4 Original line number Diff line number Diff line Loading @@ -645,11 +645,9 @@ void mconsole_sysrq(struct mc_request *req) static void stack_proc(void *arg) { struct task_struct *from = current, *to = arg; struct task_struct *task = arg; to->thread.saved_task = from; rcu_user_hooks_switch(from, to); switch_to(from, to, from); show_stack(task, NULL); } /* Loading
arch/um/include/asm/processor-generic.h +0 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ struct task_struct; struct mm_struct; struct thread_struct { struct task_struct *saved_task; struct pt_regs regs; struct pt_regs *segv_regs; int singlestep_syscall; Loading
arch/um/kernel/process.c +2 −13 Original line number Diff line number Diff line Loading @@ -82,20 +82,9 @@ 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); 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); return current->thread.prev_sched; } Loading