s390/sysinfo,stsi: change return code handling
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 6 Sep 2012 12:42:13 +0000 (14:42 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Sep 2012 13:45:12 +0000 (15:45 +0200)
commitcaf757c609445b01ad845df160369d8ccfd97d5b
treeea281a82383c15ed92ec64e88c4b1b55462d9c6e
parent94f2b9e25dc4d71b12cd16b6786cdef52b34a931
s390/sysinfo,stsi: change return code handling

Change return code handling of the stsi() function:

In case function code 0 was specified the return value is the
current configuration level (already shifted). That way all
the code that actually copied the stsi_0() function can go
away.

Otherwise the return value is 0 (success) or negative to
indicate an error (currently only -EOPNOTSUPP).

Also stsi() is no longer an inline function. The function is
not performance critical, but every caller would generate an
exception table entry for this function.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/sysinfo.h
arch/s390/kernel/early.c
arch/s390/kernel/lgr.c
arch/s390/kernel/sysinfo.c
arch/s390/kvm/priv.c
drivers/s390/net/qeth_core_main.c