diff options
author | Peter Zijlstra <peterz@infradead.org> | 2017-06-07 11:51:27 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-08-10 06:29:03 -0400 |
commit | a9668cd6ee288c4838bc668880ac085be551cac2 (patch) | |
tree | 5a4b71cef5d9f8acf8f2c67c4c518146b1c49a51 /include/linux/spinlock.h | |
parent | d89e588ca4081615216cc25f2489b0281ac0bfe9 (diff) |
locking: Remove smp_mb__before_spinlock()
Now that there are no users of smp_mb__before_spinlock() left, remove
it entirely.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/spinlock.h')
-rw-r--r-- | include/linux/spinlock.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/spinlock.h b/include/linux/spinlock.h index 840281095933..4e8cce19b507 100644 --- a/include/linux/spinlock.h +++ b/include/linux/spinlock.h | |||
@@ -118,19 +118,6 @@ do { \ | |||
118 | #endif | 118 | #endif |
119 | 119 | ||
120 | /* | 120 | /* |
121 | * Despite its name it doesn't necessarily has to be a full barrier. | ||
122 | * It should only guarantee that a STORE before the critical section | ||
123 | * can not be reordered with LOADs and STOREs inside this section. | ||
124 | * spin_lock() is the one-way barrier, this LOAD can not escape out | ||
125 | * of the region. So the default implementation simply ensures that | ||
126 | * a STORE can not move into the critical section, smp_wmb() should | ||
127 | * serialize it with another STORE done by spin_lock(). | ||
128 | */ | ||
129 | #ifndef smp_mb__before_spinlock | ||
130 | #define smp_mb__before_spinlock() smp_wmb() | ||
131 | #endif | ||
132 | |||
133 | /* | ||
134 | * This barrier must provide two things: | 121 | * This barrier must provide two things: |
135 | * | 122 | * |
136 | * - it must guarantee a STORE before the spin_lock() is ordered against a | 123 | * - it must guarantee a STORE before the spin_lock() is ordered against a |