mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
492 B
22 lines
492 B
/* SPDX-License-Identifier: GPL-2.0-only */ |
|
/* |
|
* Copyright (C) 2020 ARM Ltd. |
|
*/ |
|
#ifndef __ASM_VDSO_PROCESSOR_H |
|
#define __ASM_VDSO_PROCESSOR_H |
|
|
|
#ifndef __ASSEMBLY__ |
|
|
|
#if __LINUX_ARM_ARCH__ == 6 || defined(CONFIG_ARM_ERRATA_754327) |
|
#define cpu_relax() \ |
|
do { \ |
|
smp_mb(); \ |
|
__asm__ __volatile__("nop; nop; nop; nop; nop; nop; nop; nop; nop; nop;"); \ |
|
} while (0) |
|
#else |
|
#define cpu_relax() barrier() |
|
#endif |
|
|
|
#endif /* __ASSEMBLY__ */ |
|
|
|
#endif /* __ASM_VDSO_PROCESSOR_H */
|
|
|