~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to arch/arm64/include/asm/spinlock_types.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
# error "please don't include this file directly"
21
21
#endif
22
22
 
23
 
/* We only require natural alignment for exclusive accesses. */
24
 
#define __lock_aligned
 
23
#define TICKET_SHIFT    16
25
24
 
26
25
typedef struct {
27
 
        volatile unsigned int lock;
28
 
} arch_spinlock_t;
 
26
#ifdef __AARCH64EB__
 
27
        u16 next;
 
28
        u16 owner;
 
29
#else
 
30
        u16 owner;
 
31
        u16 next;
 
32
#endif
 
33
} __aligned(4) arch_spinlock_t;
29
34
 
30
 
#define __ARCH_SPIN_LOCK_UNLOCKED       { 0 }
 
35
#define __ARCH_SPIN_LOCK_UNLOCKED       { 0 , 0 }
31
36
 
32
37
typedef struct {
33
38
        volatile unsigned int lock;