Lines 116-122
Link Here
|
116 |
#include <linux/pci.h> |
116 |
#include <linux/pci.h> |
117 |
#include <linux/wait.h> |
117 |
#include <linux/wait.h> |
118 |
#include <linux/miscdevice.h> |
118 |
#include <linux/miscdevice.h> |
119 |
#include <linux/smp_lock.h> |
119 |
|
|
|
120 |
/* with no Big Kernel Lock and linux 2.6.38 |
121 |
and higher is smp_lock.h removed. |
122 |
instead of smp_lock.h is sched.h required */ |
123 |
#ifdef CONFIG_KERNEL_LOCK || LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) |
124 |
#include <linux/smp_lock.h> /* For (un)lock_kernel */ |
125 |
#else |
126 |
#include <linux/sched.h> |
127 |
#endif |
128 |
|
120 |
// newer SuSE kernels need this |
129 |
// newer SuSE kernels need this |
121 |
#include <linux/highmem.h> |
130 |
#include <linux/highmem.h> |
122 |
|
131 |
|