-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xtensa: fix arch spinlock function names
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
- Loading branch information
Max Filippov
authored and
Chris Zankel
committed
Jan 14, 2014
1 parent
ff38490
commit 5515daa
Showing
2 changed files
with
37 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#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 slock; | ||
} arch_spinlock_t; | ||
|
||
#define __ARCH_SPIN_LOCK_UNLOCKED { 0 } | ||
|
||
typedef struct { | ||
volatile unsigned int lock; | ||
} arch_rwlock_t; | ||
|
||
#define __ARCH_RW_LOCK_UNLOCKED { 0 } | ||
|
||
#endif |