mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
3d3337de89
We will need it for atomic.h, so move it from the ad-hoc tools/perf/ place to a tools/ subset of the kernel arch/ hierarchy. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-lp68dspbtjcwbpzd7x5c6zp5@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
19 lines
502 B
C
19 lines
502 B
C
/*
|
|
* Copied from the kernel sources to tools/:
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* Copyright (C) 2001 - 2012 Tensilica Inc.
|
|
*/
|
|
|
|
#ifndef _TOOLS_LINUX_XTENSA_SYSTEM_H
|
|
#define _TOOLS_LINUX_XTENSA_SYSTEM_H
|
|
|
|
#define mb() ({ __asm__ __volatile__("memw" : : : "memory"); })
|
|
#define rmb() barrier()
|
|
#define wmb() mb()
|
|
|
|
#endif /* _TOOLS_LINUX_XTENSA_SYSTEM_H */
|