parent
056ce26344
commit
62f4344c98
|
@ -56,9 +56,7 @@
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/kref.h>
|
#include <linux/kref.h>
|
||||||
#include <linux/pagemap.h>
|
#include <linux/pagemap.h>
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
|
|
||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
#endif
|
|
||||||
#if defined(__alpha__) || defined(__powerpc__)
|
#if defined(__alpha__) || defined(__powerpc__)
|
||||||
#include <asm/pgtable.h> /* For pte_wrprotect */
|
#include <asm/pgtable.h> /* For pte_wrprotect */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -107,16 +107,6 @@
|
||||||
#define IRQF_SHARED SA_SHIRQ
|
#define IRQF_SHARED SA_SHIRQ
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
|
|
||||||
#define mutex_lock down
|
|
||||||
#define mutex_unlock up
|
|
||||||
|
|
||||||
#define mutex semaphore
|
|
||||||
|
|
||||||
#define mutex_init(a) sema_init((a), 1)
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef DEFINE_SPINLOCK
|
#ifndef DEFINE_SPINLOCK
|
||||||
#define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED
|
#define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue