commit | 54bb7f4bda0ee49f39dc593c2d73fe6053a99dbb | [log] [tgz] |
---|---|---|
author | Anton Blanchard <anton@samba.org> | Wed Aug 07 02:01:51 2013 +1000 |
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | Wed Aug 14 15:33:40 2013 +1000 |
tree | 80a86974e8e89de50ec9eaacf3366a2f44c82986 | |
parent | 8bd0b119ae64bf448e5f45d208007950e0ac2754 [diff] |
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>