]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/arm64/include/asm/spinlock_types.h
arm64: Fix the endianness of arch_spinlock_t
[karo-tx-linux.git] / arch / arm64 / include / asm / spinlock_types.h
index 87692750ed94f2fd8f18f49388348a0aeedb64ba..b8d383665f56b04a2d44d85664660a5d46b6e40e 100644 (file)
 #define TICKET_SHIFT   16
 
 typedef struct {
+#ifdef __AARCH64EB__
+       u16 next;
+       u16 owner;
+#else
        u16 owner;
        u16 next;
+#endif
 } __aligned(4) arch_spinlock_t;
 
 #define __ARCH_SPIN_LOCK_UNLOCKED      { 0 , 0 }