define ____cacheline_aligned
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 6 Jul 2010 00:04:06 +0000 (20:04 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 6 Jul 2010 00:04:06 +0000 (20:04 -0400)
include/ust/core.h
include/ust/processor.h

index 8cedf98903e7817fd2f3555fc9d6f976eace389c..0172614331dfd4ae70bfe339c9447f75500ed33f 100644 (file)
@@ -119,11 +119,6 @@ static inline long IS_ERR(const void *ptr)
 
 #define zmalloc(s) calloc(1, s)
 
-/* ATTRIBUTES */
-
-/* FIXME: define this */
-#define ____cacheline_aligned
-
 /* MATH */
 
 #include <ust/processor.h>
index 867b140cce9b2d408f594f770ac688da86f5702c..68ac258631a61491b287d0c1f492253dd5881fda 100644 (file)
 
 #include <stddef.h>
 #include <string.h>
+#include <urcu-bp.h>
 
 extern __thread long ust_reg_stack[500];
 extern volatile __thread long *ust_reg_stack_ptr;
 
+#define ____cacheline_aligned __attribute__((aligned(CACHE_LINE_SIZE)))
+
 #ifdef __i386
 
 struct registers {
This page took 0.025783 seconds and 4 git commands to generate.