sh: Fix up spurious syscall restarting.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 29 Jan 2009 02:21:38 +0000 (11:21 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 29 Jan 2009 02:56:03 +0000 (11:56 +0900)
commit03f07876df2565321871a2dbf33c5c737df185df
treec0c5d6d9a83e53acfc2052d99ff4e26f360af018
parent0f6dee232f84c11ec195721571763ccae1b82639
sh: Fix up spurious syscall restarting.

The T-bit manipulation for syscall error checking had the side effect of
spuriously returning ERESTART* errno values over EINTR. So, we simplify
the error checking a bit and leave the T-bit alone.

Reported-by: Kaz Kojima <kkojima@rr.iij4u.or.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/syscall_32.h
arch/sh/include/asm/syscall_64.h
arch/sh/kernel/signal_32.c
arch/sh/kernel/signal_64.c