diff options
author | Peter Zijlstra <peterz@infradead.org> | 2017-06-07 17:51:27 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-08-10 12:29:03 +0200 |
commit | a9668cd6ee288c4838bc668880ac085be551cac2 (patch) | |
tree | 5a4b71cef5d9f8acf8f2c67c4c518146b1c49a51 /include/linux | |
parent | d89e588ca4081615216cc25f2489b0281ac0bfe9 (diff) | |
download | linux-a9668cd6ee288c4838bc668880ac085be551cac2.tar.gz linux-a9668cd6ee288c4838bc668880ac085be551cac2.tar.bz2 linux-a9668cd6ee288c4838bc668880ac085be551cac2.zip |
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')
-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 { \ #endif /* - * Despite its name it doesn't necessarily has to be a full barrier. - * It should only guarantee that a STORE before the critical section - * can not be reordered with LOADs and STOREs inside this section. - * spin_lock() is the one-way barrier, this LOAD can not escape out - * of the region. So the default implementation simply ensures that - * a STORE can not move into the critical section, smp_wmb() should - * serialize it with another STORE done by spin_lock(). - */ -#ifndef smp_mb__before_spinlock -#define smp_mb__before_spinlock() smp_wmb() -#endif - -/* * This barrier must provide two things: * * - it must guarantee a STORE before the spin_lock() is ordered against a |