sparc64: Add a comment about why we only use certain memory barriers these days.
Based upon feedback from Mathieu Desnoyers. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
03717e3d12
Коммит
4eb0c00b62
|
@ -63,6 +63,10 @@ do { __asm__ __volatile__("ba,pt %%xcc, 1f\n\t" \
|
||||||
: : : "memory"); \
|
: : : "memory"); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
/* The kernel always executes in TSO memory model these days,
|
||||||
|
* and furthermore most sparc64 chips implement more stringent
|
||||||
|
* memory ordering than required by the specifications.
|
||||||
|
*/
|
||||||
#define mb() membar_safe("#StoreLoad")
|
#define mb() membar_safe("#StoreLoad")
|
||||||
#define rmb() __asm__ __volatile__("":::"memory")
|
#define rmb() __asm__ __volatile__("":::"memory")
|
||||||
#define wmb() __asm__ __volatile__("":::"memory")
|
#define wmb() __asm__ __volatile__("":::"memory")
|
||||||
|
|
Загрузка…
Ссылка в новой задаче