projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: move generic caa_get_cycles to arch/generic.h
[urcu.git]
/
urcu
/
arch
/
ppc.h
diff --git
a/urcu/arch/ppc.h
b/urcu/arch/ppc.h
index 8a96dd9deb50626efe6a9a8b75e6cbab7c0dc628..0bef952ccd20095714bcb96839464a7fdf8681ff 100644
(file)
--- a/
urcu/arch/ppc.h
+++ b/
urcu/arch/ppc.h
@@
-82,6
+82,8
@@
extern "C" {
rval; \
})
rval; \
})
+#define HAS_CAA_GET_CYCLES
+
typedef unsigned long long cycles_t;
#ifdef __powerpc64__
typedef unsigned long long cycles_t;
#ifdef __powerpc64__
@@
-105,6
+107,14
@@
static inline cycles_t caa_get_cycles(void)
}
#endif
}
#endif
+/*
+ * Define the membarrier system call number if not yet available in the
+ * system headers.
+ */
+#ifndef __NR_membarrier
+#define __NR_membarrier 365
+#endif
+
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif
This page took
0.025361 seconds
and
4
git commands to generate.