blob: 511253d949092b3756d58b2bd2ea0769e2514c45 [file] [log] [blame]
#ifndef __BACKPORT_ASM_BARRIER_H
#define __BACKPORT_ASM_BARRIER_H
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
#include_next <asm/barrier.h>
#endif /* >= 3.3 */
#ifndef dma_rmb
#define dma_rmb() rmb()
#endif
#ifndef smp_mb__after_atomic
#define smp_mb__after_atomic smp_mb__after_clear_bit
#endif
#endif /* __BACKPORT_ASM_BARRIER_H */