Cleanup: remove trailing whitespaces at EOL
[urcu.git] / urcu / arch / s390.h
index b1474d8c32f524b1309f2068754c1e0040ff296e..e12c88c3398728025e745bd53e4c997e1d5e2fca 100644 (file)
 
 #ifdef __cplusplus
 extern "C" {
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 #define CAA_CACHE_LINE_SIZE    128
 
 #define cmm_mb()    __asm__ __volatile__("bcr 15,0" : : : "memory")
 
 
 #define CAA_CACHE_LINE_SIZE    128
 
 #define cmm_mb()    __asm__ __volatile__("bcr 15,0" : : : "memory")
 
+#define HAS_CAA_GET_CYCLES
+
 typedef unsigned long long cycles_t;
 
 static inline cycles_t caa_get_cycles (void)
 typedef unsigned long long cycles_t;
 
 static inline cycles_t caa_get_cycles (void)
@@ -51,7 +53,15 @@ static inline cycles_t caa_get_cycles (void)
        return cycles;
 }
 
        return cycles;
 }
 
-#ifdef __cplusplus 
+/*
+ * Define the membarrier system call number if not yet available in the
+ * system headers.
+ */
+#ifndef __NR_membarrier
+#define __NR_membarrier                356
+#endif
+
+#ifdef __cplusplus
 }
 #endif
 
 }
 #endif
 
This page took 0.022553 seconds and 4 git commands to generate.