diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2016-06-20 14:04:17 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-06-28 09:32:35 +0200 |
commit | 80a60f6ef19a0d4d06a55065f69fa3dbbbac8bcc (patch) | |
tree | e5d3e4390d5233094420bff31228c1809db8eb76 /arch/s390/kernel | |
parent | a4d9b97cc3c215a2dd6e841ee203db7b7e73b3c9 (diff) | |
download | linux-80a60f6ef19a0d4d06a55065f69fa3dbbbac8bcc.tar.gz linux-80a60f6ef19a0d4d06a55065f69fa3dbbbac8bcc.tar.bz2 linux-80a60f6ef19a0d4d06a55065f69fa3dbbbac8bcc.zip |
s390/smp: use basic blocks for sigp inline assemblies
Use only simple inline assemblies which consist of a single basic
block if the register asm construct is being used.
Otherwise gcc would generate broken code if the compiler option
--sanitize-coverage=trace-pc would be used.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r-- | arch/s390/kernel/smp.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 830537432493..5c8f7caf9f31 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c @@ -318,17 +318,11 @@ static void pcpu_delegate(struct pcpu *pcpu, void (*func)(void *), */ static int pcpu_set_smt(unsigned int mtid) { - register unsigned long reg1 asm ("1") = (unsigned long) mtid; int cc; if (smp_cpu_mtid == mtid) return 0; - asm volatile( - " sigp %1,0,%2 # sigp set multi-threading\n" - " ipm %0\n" - " srl %0,28\n" - : "=d" (cc) : "d" (reg1), "K" (SIGP_SET_MULTI_THREADING) - : "cc"); + cc = __pcpu_sigp(0, SIGP_SET_MULTI_THREADING, mtid, NULL); if (cc == 0) { smp_cpu_mtid = mtid; smp_cpu_mt_shift = 0; |