Skip to content

Commit 2c3bc13

Browse files
committed
s390/spinlock: Remove condition code clobber from arch_spin_unlock()
Both instructions in arch_spin_unlock() do not clobber the condition code. Therefore remove the condition code clobber from the inline assembly. Signed-off-by: Heiko Carstens <[email protected]>
1 parent 78486ed commit 2c3bc13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/include/asm/spinlock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static inline void arch_spin_unlock(arch_spinlock_t *lp)
8585
" sth %[zero],%[lock]\n"
8686
: [lock] "=R" (((unsigned short *)&lp->lock)[1])
8787
: [zero] "d" (0)
88-
: "cc", "memory");
88+
: "memory");
8989
}
9090

9191
/*

0 commit comments

Comments
 (0)