projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update compat
[lttv.git]
/
ltt-usertrace
/
ltt
/
atomic-ppc.h
diff --git
a/ltt-usertrace/ltt/atomic-ppc.h
b/ltt-usertrace/ltt/atomic-ppc.h
index eeafd505836ec339b0e28af79e8b5de4fc2313ba..d72731b9d98130406e3a4a5b6942a86522b2d1e2 100644
(file)
--- a/
ltt-usertrace/ltt/atomic-ppc.h
+++ b/
ltt-usertrace/ltt/atomic-ppc.h
@@
-5,9
+5,11
@@
#ifndef _ASM_PPC_ATOMIC_H_
#define _ASM_PPC_ATOMIC_H_
#ifndef _ASM_PPC_ATOMIC_H_
#define _ASM_PPC_ATOMIC_H_
-typedef struct { volatile int counter; } atomic_t;
+#ifdef __cplusplus
+extern "C" {
+#endif
-#ifdef __KERNEL__
+typedef struct { volatile int counter; } atomic_t;
#define ATOMIC_INIT(i) { (i) }
#define ATOMIC_INIT(i) { (i) }
@@
-16,7
+18,7
@@
typedef struct { volatile int counter; } atomic_t;
extern void atomic_clear_mask(unsigned long mask, unsigned long *addr);
extern void atomic_clear_mask(unsigned long mask, unsigned long *addr);
-#if
def CONFIG_SMP
+#if
0 // We only do operation on one CPU at a time (LTT)
#define SMP_SYNC "sync"
#define SMP_ISYNC "\n\tisync"
#else
#define SMP_SYNC "sync"
#define SMP_ISYNC "\n\tisync"
#else
@@
-210,5
+212,8
@@
static __inline__ int atomic_dec_if_positive(atomic_t *v)
#define smp_mb__before_atomic_inc() __MB
#define smp_mb__after_atomic_inc() __MB
#define smp_mb__before_atomic_inc() __MB
#define smp_mb__after_atomic_inc() __MB
-#endif /* __KERNEL__ */
+#ifdef __cplusplus
+} /* end of extern "C" */
+#endif
+
#endif /* _ASM_PPC_ATOMIC_H_ */
#endif /* _ASM_PPC_ATOMIC_H_ */
This page took
0.023854 seconds
and
4
git commands to generate.