Loading arch/sh/kernel/process.c +4 −2 Original line number Diff line number Diff line Loading @@ -474,7 +474,6 @@ asmlinkage int sys_execve(char __user *ufilename, char __user * __user *uargv, unsigned long get_wchan(struct task_struct *p) { unsigned long schedule_frame; unsigned long pc; if (!p || p == current || p->state == TASK_RUNNING) Loading @@ -484,10 +483,13 @@ unsigned long get_wchan(struct task_struct *p) * The same comment as on the Alpha applies here, too ... */ pc = thread_saved_pc(p); #ifdef CONFIG_FRAME_POINTER if (in_sched_functions(pc)) { schedule_frame = (unsigned long)p->thread.sp; unsigned long schedule_frame = (unsigned long)p->thread.sp; return ((unsigned long *)schedule_frame)[21]; } #endif return pc; } Loading Loading
arch/sh/kernel/process.c +4 −2 Original line number Diff line number Diff line Loading @@ -474,7 +474,6 @@ asmlinkage int sys_execve(char __user *ufilename, char __user * __user *uargv, unsigned long get_wchan(struct task_struct *p) { unsigned long schedule_frame; unsigned long pc; if (!p || p == current || p->state == TASK_RUNNING) Loading @@ -484,10 +483,13 @@ unsigned long get_wchan(struct task_struct *p) * The same comment as on the Alpha applies here, too ... */ pc = thread_saved_pc(p); #ifdef CONFIG_FRAME_POINTER if (in_sched_functions(pc)) { schedule_frame = (unsigned long)p->thread.sp; unsigned long schedule_frame = (unsigned long)p->thread.sp; return ((unsigned long *)schedule_frame)[21]; } #endif return pc; } Loading