WIP FPC-III support
[linux/fpc-iii.git] / arch / arm64 / include / asm / spinlock.h
blob9083d6992603e6e26aa3ad120bf3fd6f9cc4720a
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 vcpu_is_preempted
22 static inline bool vcpu_is_preempted(int cpu)
24 return false;
27 #endif /* __ASM_SPINLOCK_H */