treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm64 / include / asm / spinlock.h
blob102404dc1e135d3e533cbf4549cb8db4a858b379
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2012 ARM Ltd.
4 */
5 #ifndef __ASM_SPINLOCK_H
6 #define __ASM_SPINLOCK_H
8 #include <asm/qrwlock.h>
9 #include <asm/qspinlock.h>
11 /* See include/linux/spinlock.h */
12 #define smp_mb__after_spinlock() smp_mb()
15 * Changing this will break osq_lock() thanks to the call inside
16 * smp_cond_load_relaxed().
18 * See:
19 * https://lore.kernel.org/lkml/20200110100612.GC2827@hirez.programming.kicks-ass.net
21 #define vcpu_is_preempted(cpu) false
23 #endif /* __ASM_SPINLOCK_H */