aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/system_64.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/system_64.h')
-rw-r--r--include/asm-x86/system_64.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/include/asm-x86/system_64.h b/include/asm-x86/system_64.h
index 560470ea27c8..9def35eb75e3 100644
--- a/include/asm-x86/system_64.h
+++ b/include/asm-x86/system_64.h
@@ -48,31 +48,6 @@
48 48
49#endif /* __KERNEL__ */ 49#endif /* __KERNEL__ */
50 50
51#ifdef CONFIG_SMP
52#define smp_mb() mb()
53#define smp_rmb() barrier()
54#define smp_wmb() barrier()
55#define smp_read_barrier_depends() do {} while(0)
56#else
57#define smp_mb() barrier()
58#define smp_rmb() barrier()
59#define smp_wmb() barrier()
60#define smp_read_barrier_depends() do {} while(0)
61#endif
62
63
64/*
65 * Force strict CPU ordering.
66 * And yes, this is required on UP too when we're talking
67 * to devices.
68 */
69#define mb() asm volatile("mfence":::"memory")
70#define rmb() asm volatile("lfence":::"memory")
71#define wmb() asm volatile("sfence" ::: "memory")
72
73#define read_barrier_depends() do {} while(0)
74#define set_mb(var, value) do { (void) xchg(&var, value); } while (0)
75
76static inline unsigned long read_cr8(void) 51static inline unsigned long read_cr8(void)
77{ 52{
78 unsigned long cr8; 53 unsigned long cr8;