git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
include
/
asm-sparc
/
smpprim.h
diff --git
a/include/asm-sparc/smpprim.h
b/include/asm-sparc/smpprim.h
index
9b9c28e
..
e7b6d34
100644
(file)
--- a/
include/asm-sparc/smpprim.h
+++ b/
include/asm-sparc/smpprim.h
@@
-15,7
+15,7
@@
* atomic.
*/
* atomic.
*/
-
extern __inline__
__volatile__ char test_and_set(void *addr)
+
static inline
__volatile__ char test_and_set(void *addr)
{
char state = 0;
{
char state = 0;
@@
-27,7
+27,7
@@
extern __inline__ __volatile__ char test_and_set(void *addr)
}
/* Initialize a spin-lock. */
}
/* Initialize a spin-lock. */
-
extern __inline__
__volatile__ smp_initlock(void *spinlock)
+
static inline
__volatile__ smp_initlock(void *spinlock)
{
/* Unset the lock. */
*((unsigned char *) spinlock) = 0;
{
/* Unset the lock. */
*((unsigned char *) spinlock) = 0;
@@
-36,7
+36,7
@@
extern __inline__ __volatile__ smp_initlock(void *spinlock)
}
/* This routine spins until it acquires the lock at ADDR. */
}
/* This routine spins until it acquires the lock at ADDR. */
-
extern __inline__
__volatile__ smp_lock(void *addr)
+
static inline
__volatile__ smp_lock(void *addr)
{
while(test_and_set(addr) == 0xff)
;
{
while(test_and_set(addr) == 0xff)
;
@@
-46,7
+46,7
@@
extern __inline__ __volatile__ smp_lock(void *addr)
}
/* This routine releases the lock at ADDR. */
}
/* This routine releases the lock at ADDR. */
-
extern __inline__
__volatile__ smp_unlock(void *addr)
+
static inline
__volatile__ smp_unlock(void *addr)
{
*((unsigned char *) addr) = 0;
}
{
*((unsigned char *) addr) = 0;
}