Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c9ac33e4
Commit
c9ac33e4
authored
Jan 20, 2005
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge intel.com:/home/lenb/bk/26-latest-ref
into intel.com:/home/lenb/src/26-latest-dev
parents
616d980f
8edee057
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
include/asm-i386/spinlock.h
include/asm-i386/spinlock.h
+7
-7
No files found.
include/asm-i386/spinlock.h
View file @
c9ac33e4
...
...
@@ -15,7 +15,7 @@ asmlinkage int printk(const char * fmt, ...)
*/
typedef
struct
{
volatile
unsigned
int
lock
;
volatile
unsigned
int
s
lock
;
#ifdef CONFIG_DEBUG_SPINLOCK
unsigned
magic
;
#endif
...
...
@@ -43,7 +43,7 @@ typedef struct {
* We make no fairness assumptions. They have a cost.
*/
#define spin_is_locked(x) (*(volatile signed char *)(&(x)->lock) <= 0)
#define spin_is_locked(x) (*(volatile signed char *)(&(x)->
s
lock) <= 0)
#define spin_unlock_wait(x) do { barrier(); } while(spin_is_locked(x))
#define spin_lock_string \
...
...
@@ -83,7 +83,7 @@ typedef struct {
#define spin_unlock_string \
"movb $1,%0" \
:"=m" (lock->lock) : : "memory"
:"=m" (lock->
s
lock) : : "memory"
static
inline
void
_raw_spin_unlock
(
spinlock_t
*
lock
)
...
...
@@ -101,7 +101,7 @@ static inline void _raw_spin_unlock(spinlock_t *lock)
#define spin_unlock_string \
"xchgb %b0, %1" \
:"=q" (oldval), "=m" (lock->lock) \
:"=q" (oldval), "=m" (lock->
s
lock) \
:"0" (oldval) : "memory"
static
inline
void
_raw_spin_unlock
(
spinlock_t
*
lock
)
...
...
@@ -123,7 +123,7 @@ static inline int _raw_spin_trylock(spinlock_t *lock)
char
oldval
;
__asm__
__volatile__
(
"xchgb %b0,%1"
:
"=q"
(
oldval
),
"=m"
(
lock
->
lock
)
:
"=q"
(
oldval
),
"=m"
(
lock
->
s
lock
)
:
"0"
(
0
)
:
"memory"
);
return
oldval
>
0
;
}
...
...
@@ -138,7 +138,7 @@ static inline void _raw_spin_lock(spinlock_t *lock)
#endif
__asm__
__volatile__
(
spin_lock_string
:
"=m"
(
lock
->
lock
)
:
:
"memory"
);
:
"=m"
(
lock
->
s
lock
)
:
:
"memory"
);
}
static
inline
void
_raw_spin_lock_flags
(
spinlock_t
*
lock
,
unsigned
long
flags
)
...
...
@@ -151,7 +151,7 @@ static inline void _raw_spin_lock_flags (spinlock_t *lock, unsigned long flags)
#endif
__asm__
__volatile__
(
spin_lock_string_flags
:
"=m"
(
lock
->
lock
)
:
"r"
(
flags
)
:
"memory"
);
:
"=m"
(
lock
->
s
lock
)
:
"r"
(
flags
)
:
"memory"
);
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment