Lines 107-113
Link Here
|
107 |
/*---------------------------------------------------------------------------*\ |
107 |
/*---------------------------------------------------------------------------*\ |
108 |
\*---------------------------------------------------------------------------*/ |
108 |
\*---------------------------------------------------------------------------*/ |
109 |
static void scheduler (unsigned long data); |
109 |
static void scheduler (unsigned long data); |
110 |
static irqreturn_t irq_handler (int irq, void * args, struct pt_regs * regs); |
110 |
static irqreturn_t irq_handler (int irq, void * args |
|
|
111 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) |
112 |
, struct pt_regs * regs |
113 |
#endif |
114 |
); |
111 |
|
115 |
|
112 |
static DECLARE_TASKLET_DISABLED (scheduler_tasklet, scheduler, 0); |
116 |
static DECLARE_TASKLET_DISABLED (scheduler_tasklet, scheduler, 0); |
113 |
|
117 |
|
Lines 805-815
Link Here
|
805 |
|
809 |
|
806 |
/*---------------------------------------------------------------------------*\ |
810 |
/*---------------------------------------------------------------------------*\ |
807 |
\*---------------------------------------------------------------------------*/ |
811 |
\*---------------------------------------------------------------------------*/ |
808 |
static irqreturn_t irq_handler (int irq, void * args, struct pt_regs * regs) { |
812 |
static irqreturn_t irq_handler (int irq, void * args |
|
|
813 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) |
814 |
, struct pt_regs * regs |
815 |
#endif |
816 |
) { |
809 |
int res = IRQ_NONE; |
817 |
int res = IRQ_NONE; |
810 |
|
818 |
|
811 |
UNUSED_ARG (irq); |
819 |
UNUSED_ARG (irq); |
|
|
820 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) |
812 |
UNUSED_ARG (regs); |
821 |
UNUSED_ARG (regs); |
|
|
822 |
#endif |
813 |
if (args != NULL) { |
823 |
if (args != NULL) { |
814 |
assert (capi_lib->cm_handle_events != NULL); |
824 |
assert (capi_lib->cm_handle_events != NULL); |
815 |
if (atomic_read (&scheduler_id) == smp_processor_id ()) { |
825 |
if (atomic_read (&scheduler_id) == smp_processor_id ()) { |