00001 #ifndef __KAL_GENERIC_H__
00002 #define __KAL_GENERIC_H__
00003
00004 #ifdef QOS_KS
00005
00006 #include <linux/kernel.h>
00007 #include <linux/spinlock.h>
00008 #include <linux/smp_lock.h>
00009 static inline void kal_init(void) {}
00010 #else
00011
00012 # warn "COMPILING KAL_GENERIC IN USER-SPACE"
00013
00014 #define EXPORT_SYMBOL_GPL(x)
00015 #include <linux/spinlock.h>
00016 #define __cacheline_aligned
00017 #define SPIN_LOCK_UNLOCKED ((spinlock_t){0})
00018 static inline void spin_lock_irqsave(spinlock_t *x, unsigned long y) {}
00019 static inline void spin_unlock_irqrestore(spinlock_t *x, unsigned long y) {}
00020 void kal_init(void);
00021 #endif
00022
00023 #endif