Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v4.18-rc7 17 lines 631 B view raw
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _TOOLS_LINUX_ASM_AARCH64_BARRIER_H 3#define _TOOLS_LINUX_ASM_AARCH64_BARRIER_H 4 5/* 6 * From tools/perf/perf-sys.h, last modified in: 7 * f428ebd184c82a7914b2aa7e9f868918aaf7ea78 perf tools: Fix AAAAARGH64 memory barriers 8 * 9 * XXX: arch/arm64/include/asm/barrier.h in the kernel sources use dsb, is this 10 * a case like for arm32 where we do things differently in userspace? 11 */ 12 13#define mb() asm volatile("dmb ish" ::: "memory") 14#define wmb() asm volatile("dmb ishst" ::: "memory") 15#define rmb() asm volatile("dmb ishld" ::: "memory") 16 17#endif /* _TOOLS_LINUX_ASM_AARCH64_BARRIER_H */