]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit70052c1390ace94e47631dcb8fa8cf930da4d291
tree80a86974e8e89de50ec9eaacf3366a2f44c82986
parent3b0d5f97d8191f7bbcf43dcd1c852c8e1630aabf
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