continue working on build system
[ust.git] / share / kernelcompat.h
index b7c119bfcdddea0586e6faa01ab8b2525eb32eef..f141bc54e88555534cb2786665a51dbdd3191e97 100644 (file)
@@ -6,6 +6,7 @@
 #include "compiler.h"
 
 #include <string.h>
+#include <sys/time.h>
 
 #define container_of(ptr, type, member) ({                      \
         const typeof( ((type *)0)->member ) *__mptr = (ptr);    \
@@ -94,13 +95,13 @@ static inline long IS_ERR(const void *ptr)
 
 #define smp_mb__after_atomic_inc() do {} while(0)
 
-/* RCU */
-
-#include "urcu.h"
-#define call_rcu_sched(a,b) b(a); synchronize_rcu()
-#define rcu_barrier_sched() do {} while(0) /* this nop is ok if call_rcu_sched does a synchronize_rcu() */
-#define rcu_read_lock_sched_notrace() rcu_read_lock()
-#define rcu_read_unlock_sched_notrace() rcu_read_unlock()
+///* RCU */
+//
+//#include "urcu.h"
+//#define call_rcu_sched(a,b) b(a); synchronize_rcu()
+//#define rcu_barrier_sched() do {} while(0) /* this nop is ok if call_rcu_sched does a synchronize_rcu() */
+//#define rcu_read_lock_sched_notrace() rcu_read_lock()
+//#define rcu_read_unlock_sched_notrace() rcu_read_unlock()
 
 /* ATOMICITY */
 
@@ -131,8 +132,6 @@ static int atomic_read(atomic_t *p)
 #define atomic_long_set atomic_set
 #define atomic_long_read atomic_read
 
-#include "asm.h"
-
 //#define __xg(x) ((volatile long *)(x))
 
 #define cmpxchg(ptr, o, n)                                             \
This page took 0.023786 seconds and 4 git commands to generate.