arm64: Fix the endianness of arch_spinlock_t
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 25 Oct 2013 14:48:33 +0000 (15:48 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 25 Oct 2013 15:10:22 +0000 (16:10 +0100)
commit4a12cae7ef2612eb094c4b48e8b37cf837e3df55
tree5e83a91e0358efb93ef29db454487ba7f5b347e5
parent710be9ac4ea0d2e02a2c4aa625795e65bf3db5b1
arm64: Fix the endianness of arch_spinlock_t

The owner and next members of the arch_spinlock_t structure need to be
swapped when compiling for big endian.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Matthew Leach <matthew.leach@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/spinlock_types.h