]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 10 Sep 2012 07:54:32 +0000 (09:54 +0200)
commit51077e36254156aad8affc6e0101b7eb7f7410e2
treeebb81f46391865fdb073ec909f7225cc62e2af7a
parente25b0dd16a851bcfa9357075eb8cc3119b620f1e
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