microblaze: evict the check for kernel_mode(regs) from do_notify_resume()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Apr 2012 07:35:29 +0000 (03:35 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Feb 2013 23:16:01 +0000 (18:16 -0500)
commitc886a9fc1f69c0e53788a9c4a780b6b8825bd4ab
treedc732cc68efe2bea82d9470a577252685832c44a
parent4a9d32d377e1facca204cc1c6856406be8b53fa3
microblaze: evict the check for kernel_mode(regs) from do_notify_resume()

Only one caller hasn't done it in assembler - work_pending on !MMU.
Everything else can't reach do_notify_resume() if we are returning
to kernel mode, so move that check to that sole caller and make
do_notify_resume() reachable only when returning to userland.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/microblaze/kernel/entry-nommu.S
arch/microblaze/kernel/signal.c