Next round of trying to allow handling VME interrupts of multiple
authorwentasah <wentasah>
Wed, 16 Feb 2005 19:18:58 +0000 (19:18 +0000)
committerwentasah <wentasah>
Wed, 16 Feb 2005 19:18:58 +0000 (19:18 +0000)
cards by RT Linux.

lincan/src/can_devrtl.c

index c7ff970..0520902 100644 (file)
@@ -52,14 +52,21 @@ unsigned int can_rtl_isr( unsigned int irq_num, struct pt_regs *r )
                        set_bit(MSGOBJ_WORKER_WAKE_b,&chip->pend_flags);
                        if(chip->flags & CHIP_IRQ_PCI)
                                irq2linux=1;
+#ifdef CAN_ENABLE_VME_SUPPORT
+                       if (chip->flags & CHIP_IRQ_VME)
+                                tundra_rtl_ack_irq_vector(irq_num);
+#endif
                        if(!chip->worker_thread) continue;
                        thread=chip->worker_thread;
                        pthread_kill(thread,RTL_SIGNAL_WAKEUP);
                }
        }
 
-       if(irq2linux)
-               rtl_global_pend_irq(irq_num);
+        /* The following lines are commented out because of it is not
+         * possible to share level activated (PCI) IRQs between Linux
+         * and RT-Linux. */
+/*     if(irq2linux) */
+/*             rtl_global_pend_irq(irq_num); */
 
        /*if(thread) rtl_reschedule_thread(thread);*/