projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
428aecf
)
[S390] use set_current_state in sigsuspend
author
Martin Schwidefsky
<
[email protected]
>
Wed, 27 Jan 2010 09:12:37 +0000
(10:12 +0100)
committer
Martin Schwidefsky
<
[email protected]
>
Wed, 27 Jan 2010 09:12:49 +0000
(10:12 +0100)
Use set_current_state instead of a direct assignment to set the
task state of the current process.
Signed-off-by: Martin Schwidefsky <
[email protected]
>
arch/s390/kernel/signal.c
patch
|
blob
|
history
diff --git
a/arch/s390/kernel/signal.c
b/arch/s390/kernel/signal.c
index 1675c48b9145289bb2adbd82a102ae3d76cb8376..6289945562b01d4278bea7286ded246eb13efe3c 100644
(file)
--- a/
arch/s390/kernel/signal.c
+++ b/
arch/s390/kernel/signal.c
@@
-64,7
+64,7
@@
SYSCALL_DEFINE3(sigsuspend, int, history0, int, history1, old_sigset_t, mask)
recalc_sigpending();
spin_unlock_irq(¤t->sighand->siglock);
-
current->state = TASK_INTERRUPTIBLE
;
+
set_current_state(TASK_INTERRUPTIBLE)
;
schedule();
set_thread_flag(TIF_RESTORE_SIGMASK);