powerpc: Make rwlocks endian safe
authorAnton Blanchard <anton@samba.org>
Tue, 6 Aug 2013 16:01:51 +0000 (02:01 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 05:33:40 +0000 (15:33 +1000)
commit54bb7f4bda0ee49f39dc593c2d73fe6053a99dbb
tree80a86974e8e89de50ec9eaacf3366a2f44c82986
parent8bd0b119ae64bf448e5f45d208007950e0ac2754
powerpc: Make rwlocks endian safe

Our ppc64 spinlocks and rwlocks use a trick where a lock token and
the paca index are placed in the lock with a single store. Since we
are using two u16s they need adjusting for little endian.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/paca.h
arch/powerpc/include/asm/spinlock.h
arch/powerpc/kvm/book3s_hv_rm_mmu.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S