/* * Copied from the kernel sources: * * Copyright IBM Corp. 1999, 2009 * * Author(s): Martin Schwidefsky */ #ifndef __TOOLS_LINUX_ASM_BARRIER_H #define __TOOLS_LINUX_ASM_BARRIER_H /* * Force strict CPU ordering. * And yes, this is required on UP too when we're talking * to devices. */ #ifdef CONFIG_HAVE_MARCH_Z196_FEATURES /* Fast-BCR without checkpoint synchronization */ #define __ASM_BARRIER "bcr 14,0\n" #else #define __ASM_BARRIER "bcr 15,0\n" #endif #define mb() do { asm volatile(__ASM_BARRIER : : : "memory"); } while (0) #define rmb() mb() #define wmb() mb() #endif /* __TOOLS_LIB_ASM_BARRIER_H */
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2017-01-03 22:55:50 +0100
committerHelge Deller <deller@gmx.de>2017-01-28 21:54:21 +0100
commit83b5d1e3d3013dbf90645a5d07179d018c8243fa (patch)
tree831d7125df83a827408def371df72b1360e94078 /tools/testing/selftests/sync/synctest.h
parentd56a5ca366e785f463b4782f65daac883612a2b2 (diff)
parisc, parport_gsc: Fixes for printk continuation lines
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'tools/testing/selftests/sync/synctest.h')