x86/xen: resume timer irqs early
[linux/fpc-iii.git] / arch / hexagon / include / asm / barrier.h
blob1041a8e70ce85cea7e8b2d9372dbb8fef19c8496
1 /*
2 * Memory barrier definitions for the Hexagon architecture
4 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 and
8 * only version 2 as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301, USA.
21 #ifndef _ASM_BARRIER_H
22 #define _ASM_BARRIER_H
24 #define rmb() barrier()
25 #define read_barrier_depends() barrier()
26 #define wmb() barrier()
27 #define mb() barrier()
28 #define smp_rmb() barrier()
29 #define smp_read_barrier_depends() barrier()
30 #define smp_wmb() barrier()
31 #define smp_mb() barrier()
32 #define smp_mb__before_atomic_dec() barrier()
33 #define smp_mb__after_atomic_dec() barrier()
34 #define smp_mb__before_atomic_inc() barrier()
35 #define smp_mb__after_atomic_inc() barrier()
37 /* Set a value and use a memory barrier. Used by the scheduler somewhere. */
38 #define set_mb(var, value) \
39 do { var = value; mb(); } while (0)
41 #endif /* _ASM_BARRIER_H */