start work on enabling VMCORE and adding support in ustd
[lttng-ust.git] / share / kernelcompat.h
index 052f7688bb9f36d804529eca4ca65176fc04c428..c0f4c9938c47a1959bcd5114036db63519ea1d3c 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);    \
@@ -71,14 +72,6 @@ static inline long IS_ERR(const void *ptr)
 
 #define mutex_unlock(m) pthread_mutex_unlock(m)
 
-/* SPINLOCKS */
-
-typedef int spinlock_t;
-
-#define spin_lock(a) /* nothing */
-#define spin_unlock(a) /* nothing */
-#define spin_lock_init(a) /* nothing */
-
 
 /* MALLOCATION */
 
@@ -139,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.024156 seconds and 4 git commands to generate.