mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-20 18:39:12 +00:00
14e256c107
Neaten up the CONFIG_PA20 ifdefs More merge fixes, this time for SMP Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Prettify the CONFIG_DEBUG_SPINLOCK __SPIN_LOCK_UNLOCKED initializers. Clean up some warnings with CONFIG_DEBUG_SPINLOCK enabled. Fix build with spinlock debugging turned on. Patch is cleaner like this, too. Remove mandatory 16-byte alignment requirement on PA2.0 processors by using the ldcw,CO completer. Provides a nice insn savings. Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
25 lines
528 B
C
25 lines
528 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 {
|
|
#ifdef CONFIG_PA20
|
|
volatile unsigned int slock;
|
|
# define __RAW_SPIN_LOCK_UNLOCKED { 1 }
|
|
#else
|
|
volatile unsigned int lock[4];
|
|
# define __RAW_SPIN_LOCK_UNLOCKED { { 1, 1, 1, 1 } }
|
|
#endif
|
|
} raw_spinlock_t;
|
|
|
|
typedef struct {
|
|
raw_spinlock_t lock;
|
|
volatile int counter;
|
|
} raw_rwlock_t;
|
|
|
|
#define __RAW_RW_LOCK_UNLOCKED { __RAW_SPIN_LOCK_UNLOCKED, 0 }
|
|
|
|
#endif
|