Lines 103-109
Link Here
|
103 |
#endif |
103 |
#endif |
104 |
|
104 |
|
105 |
#include <linux/spinlock.h> |
105 |
#include <linux/spinlock.h> |
|
|
106 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) |
107 |
#else |
106 |
#include <asm/semaphore.h> |
108 |
#include <asm/semaphore.h> |
|
|
109 |
#endif |
107 |
#include <linux/completion.h> |
110 |
#include <linux/completion.h> |
108 |
#include <linux/highmem.h> |
111 |
#include <linux/highmem.h> |
109 |
|
112 |
|
Lines 618-630
Link Here
|
618 |
#if defined(preempt_disable) |
621 |
#if defined(preempt_disable) |
619 |
preempt_disable(); |
622 |
preempt_disable(); |
620 |
#endif |
623 |
#endif |
|
|
624 |
|
625 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) |
626 |
ret = smp_call_function(func, info, 1); |
627 |
#else |
621 |
ret = smp_call_function(func, info, 1, 1); |
628 |
ret = smp_call_function(func, info, 1, 1); |
|
|
629 |
#endif |
622 |
func(info); |
630 |
func(info); |
623 |
#if defined(preempt_enable) |
631 |
#if defined(preempt_enable) |
624 |
preempt_enable(); |
632 |
preempt_enable(); |
625 |
#endif |
633 |
#endif |
626 |
#else |
634 |
#else |
|
|
635 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) |
636 |
ret = on_each_cpu(func, info, 1); |
637 |
#else |
627 |
ret = on_each_cpu(func, info, 1, 1); |
638 |
ret = on_each_cpu(func, info, 1, 1); |
|
|
639 |
#endif |
628 |
#endif |
640 |
#endif |
629 |
return ret; |
641 |
return ret; |
630 |
} |
642 |
} |