OSDN Git Service

locking/osq: Use optimized spinning loop for arm64
[tomoyo/tomoyo-test1.git] / arch / arm64 / include / asm / spinlock.h
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
7
8 #include <asm/qrwlock.h>
9 #include <asm/qspinlock.h>
10
11 /* See include/linux/spinlock.h */
12 #define smp_mb__after_spinlock()        smp_mb()
13
14 /*
15  * Changing this will break osq_lock() thanks to the call inside
16  * smp_cond_load_relaxed().
17  *
18  * See:
19  * https://lore.kernel.org/lkml/20200110100612.GC2827@hirez.programming.kicks-ass.net
20  */
21 #define vcpu_is_preempted(cpu)  false
22
23 #endif /* __ASM_SPINLOCK_H */