]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/signal: always restore saved runtime instrumentation psw bit
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Tue, 19 Nov 2013 11:26:09 +0000 (12:26 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 20 Nov 2013 08:04:53 +0000 (09:04 +0100)
commitaa7e04b3808614980d474735cdb0bf35ac5cdf26
treebb6e80bf8f9779b33c8c54baa6c09fa049c9ec33
parentb4789b8e6be3151a955ade74872822f30e8cd914
s390/signal: always restore saved runtime instrumentation psw bit

Commit "s390: fix handling of runtime instrumentation psw bit" (5ebf250dab)
changed the behavior of setting the runtime instrumentation psw bit.  This
commit restores the original logic:

1. When returning from the signal handler, the runtime instrumentation psw bit
   is restored to its saved state.
2. If the runtime instrumentation psw bit is enabled during the signal handler,
   it is always turned off when leaving the signal handler.  The saved state
   is restored as described in 1.  That also implies that turning on runtime
   instrumentation in the signal handler is only effective while running in the
   signal context.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
arch/s390/kernel/compat_signal.c
arch/s390/kernel/signal.c