mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 00:06:51 +07:00
1ce790913b
This defines __smp_xxx barriers for xtensa, for use by virtualization. smp_xxx barriers are removed as they are defined correctly by asm-generic/barriers.h Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
22 lines
542 B
C
22 lines
542 B
C
/*
|
|
* 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 _XTENSA_SYSTEM_H
|
|
#define _XTENSA_SYSTEM_H
|
|
|
|
#define mb() ({ __asm__ __volatile__("memw" : : : "memory"); })
|
|
#define rmb() barrier()
|
|
#define wmb() mb()
|
|
|
|
#define __smp_mb__before_atomic() barrier()
|
|
#define __smp_mb__after_atomic() barrier()
|
|
|
|
#include <asm-generic/barrier.h>
|
|
|
|
#endif /* _XTENSA_SYSTEM_H */
|