Skip to content

Commit 6fdb6fb

Browse files
author
Al Viro
committed
mn10300: get rid of calling do_notify_resume() when returning to kernel mode
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 13d112e commit 6fdb6fb

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎arch/mn10300/kernel/entry.S‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ restore_all:
108108
###############################################################################
109109
ALIGN
110110
syscall_exit_work:
111+
mov (REG_EPSW,fp),d0
112+
and EPSW_nSL,d0
113+
beq resume_kernel # returning to supervisor mode
114+
111115
btst _TIF_SYSCALL_TRACE,d2
112116
beq work_pending
113117
LOCAL_IRQ_ENABLE # could let syscall_trace_exit() call

‎arch/mn10300/kernel/signal.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -475,11 +475,6 @@ static void do_signal(struct pt_regs *regs)
475475
siginfo_t info;
476476
int signr;
477477

478-
/* we want the common case to go fast, which is why we may in certain
479-
* cases get here from kernel mode */
480-
if (!user_mode(regs))
481-
return;
482-
483478
signr = get_signal_to_deliver(&info, &ka, regs, NULL);
484479
if (signr > 0) {
485480
if (handle_signal(signr, &info, &ka, regs) == 0) {

0 commit comments

Comments
 (0)