hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/s390/include/asm/spinlock.h
....@@ -20,11 +20,7 @@
2020
2121 extern int spin_retry;
2222
23
-#ifndef CONFIG_SMP
24
-static inline bool arch_vcpu_is_preempted(int cpu) { return false; }
25
-#else
2623 bool arch_vcpu_is_preempted(int cpu);
27
-#endif
2824
2925 #define vcpu_is_preempted arch_vcpu_is_preempted
3026
....@@ -89,7 +85,7 @@
8985 static inline void arch_spin_unlock(arch_spinlock_t *lp)
9086 {
9187 typecheck(int, lp->lock);
92
- asm volatile(
88
+ asm_inline volatile(
9389 ALTERNATIVE("", ".long 0xb2fa0070", 49) /* NIAI 7 */
9490 " sth %1,%0\n"
9591 : "=Q" (((unsigned short *) &lp->lock)[1])