[SPARC64]: Two IRQ handling fixes.
[deliverable/linux.git] / arch / sparc64 / kernel / irq.c
index c786d2549bced0ceb7cf8280882af5091a07204b..4d9931d124ab35df38c31a66c7703c6f79529aea 100644 (file)
@@ -164,6 +164,10 @@ void enable_irq(unsigned int irq)
                if (err != HV_EOK)
                        printk("sun4v_intr_setenabled(%x): err(%d)\n",
                               ino, err);
+               err = sun4v_intr_setstate(ino, HV_INTR_STATE_IDLE);
+               if (err != HV_EOK)
+                       printk("sun4v_intr_setstate(%x): "
+                              "err(%d)\n", ino, err);
        } else {
                if (tlb_type == cheetah || tlb_type == cheetah_plus) {
                        unsigned long ver;
@@ -663,10 +667,11 @@ static void process_bucket(int irq, struct ino_bucket *bp, struct pt_regs *regs)
                                       "err(%d)\n", ino, err);
                } else {
                        upa_writel(ICLR_IDLE, bp->iclr);
-                       /* Test and add entropy */
-                       if (random & SA_SAMPLE_RANDOM)
-                               add_interrupt_randomness(irq);
                }
+
+               /* Test and add entropy */
+               if (random & SA_SAMPLE_RANDOM)
+                       add_interrupt_randomness(irq);
        }
 out:
        bp->flags &= ~IBF_INPROGRESS;
This page took 0.024362 seconds and 5 git commands to generate.