diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-19 12:48:50 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-07-28 06:11:52 -0400 |
commit | 6628521784d1da3b7354c6b6e8499e19ab46a3d1 (patch) | |
tree | cde8876156ebe9999bdc2156f76d18b15293c754 /arch/arm/kernel/entry-common.S | |
parent | 81783786d5cf4aa0d3e15bb0fac856aa8ebf1a76 (diff) |
ARM: 7474/1: get rid of TIF_SYSCALL_RESTARTSYS
just let do_work_pending() return 1 on normal local restarts and
-1 on those that had been caused by ERESTART_RESTARTBLOCK (and 0
is still "all done, sod off to userland now"). And let the asm
glue flip scno to restart_syscall(2) one if it got negative from
us...
[will: resolved conflicts with audit fixes]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/entry-common.S')
-rw-r--r-- | arch/arm/kernel/entry-common.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S index 8ae58c47dce6..2909bbcaa0d1 100644 --- a/arch/arm/kernel/entry-common.S +++ b/arch/arm/kernel/entry-common.S | |||
@@ -54,8 +54,9 @@ work_pending: | |||
54 | mov r0, sp @ 'regs' | 54 | mov r0, sp @ 'regs' |
55 | mov r2, why @ 'syscall' | 55 | mov r2, why @ 'syscall' |
56 | bl do_work_pending | 56 | bl do_work_pending |
57 | tst r0, #1 | 57 | cmp r0, #0 |
58 | beq no_work_pending | 58 | beq no_work_pending |
59 | movlt scno, #(__NR_restart_syscall - __NR_SYSCALL_BASE) | ||
59 | ldmia sp, {r0 - r6} @ have to reload r0 - r6 | 60 | ldmia sp, {r0 - r6} @ have to reload r0 - r6 |
60 | b local_restart @ ... and off we go | 61 | b local_restart @ ... and off we go |
61 | 62 | ||