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
2989ea10
Commit
2989ea10
authored
May 25, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Implement _raw_spin_lock_flags().
parent
1d16702f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
3 deletions
+29
-3
arch/sparc64/kernel/sparc64_ksyms.c
arch/sparc64/kernel/sparc64_ksyms.c
+2
-0
arch/sparc64/lib/Makefile
arch/sparc64/lib/Makefile
+1
-1
arch/sparc64/lib/splock.S
arch/sparc64/lib/splock.S
+23
-0
include/asm-sparc64/spinlock.h
include/asm-sparc64/spinlock.h
+3
-2
No files found.
arch/sparc64/kernel/sparc64_ksyms.c
View file @
2989ea10
...
...
@@ -133,6 +133,8 @@ EXPORT_SYMBOL(__read_unlock);
EXPORT_SYMBOL
(
__write_lock
);
EXPORT_SYMBOL
(
__write_unlock
);
EXPORT_SYMBOL
(
__write_trylock
);
/* Out of line spin-locking implementation. */
EXPORT_SYMBOL
(
_raw_spin_lock_flags
);
#endif
/* Hard IRQ locking */
...
...
arch/sparc64/lib/Makefile
View file @
2989ea10
...
...
@@ -10,7 +10,7 @@ lib-y := PeeCeeI.o blockops.o strlen.o strncmp.o \
VIScopy.o VISbzero.o VISmemset.o VIScsum.o VIScsumcopy.o
\
VIScsumcopyusr.o VISsave.o atomic.o rwlock.o bitops.o
\
U3memcpy.o U3copy_from_user.o U3copy_to_user.o
\
U3copy_in_user.o mcount.o ipcsum.o rwsem.o xor.o
U3copy_in_user.o mcount.o ipcsum.o rwsem.o xor.o
splock.o
lib-$(CONFIG_DEBUG_SPINLOCK)
+=
debuglocks.o
lib-$(CONFIG_HAVE_DEC_LOCK)
+=
dec_and_lock.o
arch/sparc64/lib/splock.S
0 → 100644
View file @
2989ea10
/*
splock.S
:
Spinlock
primitives
too
large
to
inline
.
*
*
Copyright
(
C
)
2004
David
S
.
Miller
(
davem
@
redhat
.
com
)
*/
.
text
.
align
64
.
globl
_raw_spin_lock_flags
_raw_spin_lock_flags
:
/
*
%
o0
=
lock_ptr
,
%
o1
=
irq_flags
*/
1
:
ldstub
[%
o0
],
%
g7
brnz
,
pn
%
g7
,
2
f
membar
#
StoreLoad
|
#
StoreStore
retl
nop
2
:
rdpr
%
pil
,
%
g2
!
Save
PIL
wrpr
%
o1
,
%
pil
!
Set
previous
PIL
3
:
ldub
[%
o0
],
%
g7
!
Spin
on
lock
set
brnz
,
pt
%
g7
,
3
b
membar
#
LoadLoad
ba
,
pt
%
xcc
,
1
b
!
Retry
lock
acquire
wrpr
%
g2
,
%
pil
!
Restore
PIL
include/asm-sparc64/spinlock.h
View file @
2989ea10
...
...
@@ -78,6 +78,8 @@ static __inline__ void _raw_spin_unlock(spinlock_t *lock)
:
"memory"
);
}
extern
void
_raw_spin_lock_flags
(
spinlock_t
*
lock
,
unsigned
long
flags
);
#else
/* !(CONFIG_DEBUG_SPINLOCK) */
typedef
struct
{
...
...
@@ -103,11 +105,10 @@ extern int _spin_trylock (spinlock_t *lock);
#define _raw_spin_trylock(lp) _spin_trylock(lp)
#define _raw_spin_lock(lock) _do_spin_lock(lock, "spin_lock")
#define _raw_spin_unlock(lock) _do_spin_unlock(lock)
#define _raw_spin_lock_flags(lock, flags) _raw_spin_lock(lock)
#endif
/* CONFIG_DEBUG_SPINLOCK */
#define _raw_spin_lock_flags(lock, flags) _raw_spin_lock(lock)
/* Multi-reader locks, these are much saner than the 32-bit Sparc ones... */
#ifndef CONFIG_DEBUG_SPINLOCK
...
...
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