]> git.karo-electronics.de Git - mv-sheeva.git/commit
sparc64: Run the kernel always in the TSO memory model.
authorDavid S. Miller <davem@davemloft.net>
Thu, 30 Oct 2008 04:25:00 +0000 (21:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Dec 2008 17:16:46 +0000 (09:16 -0800)
commit64f2dde3f743c8a1ad8c0a1aa74166c1034afd92
tree5033069de9784f6c2a6f545e5dfafa97a2b430d8
parentc9bb6003dd096ad190e1594a7d835ae1c39fae8f
sparc64: Run the kernel always in the TSO memory model.

The fact of the matter is, all UltraSPARC-III and later chips only
implement TSO.  They don't implement PSO and RMO memory models at all.

Only the Ultra-I and Ultra-II family chips implement RMO and they are
only helped marginally by using this setting when executing kernel
code.

The big plus to doing this is that we can eliminate all of the non-Sync
memory barriers in the kernel except for the ones used in the optimized
memcpy/memset code (these use block load and store operations which
have their own memory ordering rules).

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/spinlock_64.h
arch/sparc64/kernel/etrap.S
arch/sparc64/kernel/rtrap.S