forked from Minki/linux
[SPARC64]: bp->pil can never be zero
Only pil0_dummy_bucket had a pil of zero and we just killed that off, so we can delete all special case code that used bp->pil==0 as a way to identify a dummy bucket. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fd0504c321
commit
6a76267f0e
@ -633,23 +633,22 @@ static void process_bucket(struct ino_bucket *bp, struct pt_regs *regs)
|
|||||||
if (!action_mask)
|
if (!action_mask)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (bp->pil != 0) {
|
|
||||||
if (tlb_type == hypervisor) {
|
|
||||||
unsigned int ino = __irq_ino(bp);
|
|
||||||
int err;
|
|
||||||
|
|
||||||
err = sun4v_intr_setstate(ino, HV_INTR_STATE_IDLE);
|
if (tlb_type == hypervisor) {
|
||||||
if (err != HV_EOK)
|
unsigned int ino = __irq_ino(bp);
|
||||||
printk("sun4v_intr_setstate(%x): "
|
int err;
|
||||||
"err(%d)\n", ino, err);
|
|
||||||
} else {
|
|
||||||
upa_writel(ICLR_IDLE, bp->iclr);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Test and add entropy */
|
err = sun4v_intr_setstate(ino, HV_INTR_STATE_IDLE);
|
||||||
if (random & SA_SAMPLE_RANDOM)
|
if (err != HV_EOK)
|
||||||
add_interrupt_randomness(bp->pil);
|
printk("sun4v_intr_setstate(%x): "
|
||||||
|
"err(%d)\n", ino, err);
|
||||||
|
} else {
|
||||||
|
upa_writel(ICLR_IDLE, bp->iclr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Test and add entropy */
|
||||||
|
if (random & SA_SAMPLE_RANDOM)
|
||||||
|
add_interrupt_randomness(bp->pil);
|
||||||
out:
|
out:
|
||||||
bp->flags &= ~IBF_INPROGRESS;
|
bp->flags &= ~IBF_INPROGRESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user