s390/cpumf: simplify psw generation
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 14 Nov 2016 06:46:06 +0000 (07:46 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 23 Nov 2016 15:02:22 +0000 (16:02 +0100)
commit1e16b09666baaf2919f991064237961ca766e394
treea98fb4c3278aa2687e7167890f4871d5bf9f18f4
parent3a890380e42667145fc967b22ff720a0451d8953
s390/cpumf: simplify psw generation

Use the psw_bits macro and simplify the code. The generated code is
also better since it doesn't contain any conditional branches anymore.

Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/perf_cpum_sf.c