mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-20 02:19:01 +00:00
3c1fcfe229
Use the new diagnose 0x9c in the spinlock implementation for s390. It yields the remaining timeslice of the virtual cpu that tries to acquire a lock to the virtual cpu that is the current holder of the lock. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 lines
436 B
C
21 lines
436 B
C
#ifndef __ASM_SPINLOCK_TYPES_H
|
|
#define __ASM_SPINLOCK_TYPES_H
|
|
|
|
#ifndef __LINUX_SPINLOCK_TYPES_H
|
|
# error "please don't include this file directly"
|
|
#endif
|
|
|
|
typedef struct {
|
|
volatile unsigned int owner_cpu;
|
|
volatile unsigned int owner_pc;
|
|
} __attribute__ ((aligned (4))) raw_spinlock_t;
|
|
|
|
#define __RAW_SPIN_LOCK_UNLOCKED { 0 }
|
|
|
|
typedef struct {
|
|
volatile unsigned int lock;
|
|
} raw_rwlock_t;
|
|
|
|
#define __RAW_RW_LOCK_UNLOCKED { 0 }
|
|
|
|
#endif
|