summaryrefslogtreecommitdiff
path: root/arch/s390/kernel
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2025-02-07 15:49:06 +0100
committerVasily Gorbik <gor@linux.ibm.com>2025-03-04 17:18:07 +0100
commit91d6e44221e871c6a2b6c4a67f52b62b36c441a3 (patch)
treee939884adfba50d14868cb56570c7facd8837ad5 /arch/s390/kernel
parenta130b6d60bd690b6300bb176e08c4cd9b3ac276a (diff)
s390/sysinfo: Move stsi() to header file
Move stsi() inline assembly to header file so it is possible to use it also for the decompressor. Reviewed-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r--arch/s390/kernel/sysinfo.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/arch/s390/kernel/sysinfo.c b/arch/s390/kernel/sysinfo.c
index 6c5baff46f91..d096a154cc40 100644
--- a/arch/s390/kernel/sysinfo.c
+++ b/arch/s390/kernel/sysinfo.c
@@ -26,32 +26,6 @@
int topology_max_mnest;
-/*
- * stsi - store system information
- *
- * Returns the current configuration level if function code 0 was specified.
- * Otherwise returns 0 on success or a negative value on error.
- */
-int stsi(void *sysinfo, int fc, int sel1, int sel2)
-{
- int r0 = (fc << 28) | sel1;
- int cc;
-
- asm volatile(
- " lr %%r0,%[r0]\n"
- " lr %%r1,%[r1]\n"
- " stsi %[sysinfo]\n"
- " lr %[r0],%%r0\n"
- CC_IPM(cc)
- : CC_OUT(cc, cc), [r0] "+d" (r0), [sysinfo] "=Q" (*(char *)sysinfo)
- : [r1] "d" (sel2)
- : CC_CLOBBER_LIST("0", "1", "memory"));
- if (cc == 3)
- return -EOPNOTSUPP;
- return fc ? 0 : (unsigned int)r0 >> 28;
-}
-EXPORT_SYMBOL(stsi);
-
#ifdef CONFIG_PROC_FS
static bool convert_ext_name(unsigned char encoding, char *name, size_t len)