projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[MIPS] Add GT641xx IRQ routines.
[powerpc.git]
/
include
/
asm-mips
/
bitops.h
diff --git
a/include/asm-mips/bitops.h
b/include/asm-mips/bitops.h
index
ffe245b
..
148bc79
100644
(file)
--- a/
include/asm-mips/bitops.h
+++ b/
include/asm-mips/bitops.h
@@
-38,8
+38,8
@@
/*
* clear_bit() doesn't provide any barrier for the compiler.
*/
/*
* clear_bit() doesn't provide any barrier for the compiler.
*/
-#define smp_mb__before_clear_bit() smp_mb()
-#define smp_mb__after_clear_bit() smp_mb()
+#define smp_mb__before_clear_bit() smp_
llsc_
mb()
+#define smp_mb__after_clear_bit() smp_
llsc_
mb()
/*
* set_bit - Atomically set a bit in memory
/*
* set_bit - Atomically set a bit in memory
@@
-289,7
+289,7
@@
static inline int test_and_set_bit(unsigned long nr,
raw_local_irq_restore(flags);
}
raw_local_irq_restore(flags);
}
- smp_mb();
+ smp_
llsc_
mb();
return res != 0;
}
return res != 0;
}
@@
-310,7
+310,7
@@
static inline int test_and_clear_bit(unsigned long nr,
if (cpu_has_llsc && R10000_LLSC_WAR) {
unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
if (cpu_has_llsc && R10000_LLSC_WAR) {
unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
- unsigned long temp
, res
;
+ unsigned long temp;
__asm__ __volatile__(
" .set mips3 \n"
__asm__ __volatile__(
" .set mips3 \n"
@@
-377,7
+377,7
@@
static inline int test_and_clear_bit(unsigned long nr,
raw_local_irq_restore(flags);
}
raw_local_irq_restore(flags);
}
- smp_mb();
+ smp_
llsc_
mb();
return res != 0;
}
return res != 0;
}
@@
-445,7
+445,7
@@
static inline int test_and_change_bit(unsigned long nr,
raw_local_irq_restore(flags);
}
raw_local_irq_restore(flags);
}
- smp_mb();
+ smp_
llsc_
mb();
return res != 0;
}
return res != 0;
}