preempt_disable();
if (tlb_type == hypervisor) {
+ unsigned int ino = __irq_ino(irq);
int cpu = hard_smp_processor_id();
- sun4v_intr_settarget(irq, cpu);
- sun4v_intr_setenabled(irq, HV_INTR_ENABLED);
+ sun4v_intr_settarget(ino, cpu);
+ sun4v_intr_setenabled(ino, HV_INTR_ENABLED);
} else {
if (tlb_type == cheetah || tlb_type == cheetah_plus) {
unsigned long ver;
imap = bucket->imap;
if (imap != 0UL) {
if (tlb_type == hypervisor) {
- sun4v_intr_setenabled(irq, HV_INTR_DISABLED);
+ unsigned int ino = __irq_ino(irq);
+
+ sun4v_intr_setenabled(ino, HV_INTR_DISABLED);
} else {
u32 tmp;
}
if (bp->pil != 0) {
if (tlb_type == hypervisor) {
- unsigned int irq = __irq(bp);
+ unsigned int ino = __irq_ino(bp);
- sun4v_intr_setstate(irq, HV_INTR_STATE_IDLE);
+ sun4v_intr_setstate(ino, HV_INTR_STATE_IDLE);
} else {
upa_writel(ICLR_IDLE, bp->iclr);
/* Test and add entropy */
}
if (tlb_type == hypervisor) {
- unsigned int irq = __irq(bucket);
+ unsigned int ino = __irq_ino(bucket);
- sun4v_intr_settarget(irq, goal_cpu);
- sun4v_intr_setenabled(irq, HV_INTR_ENABLED);
+ sun4v_intr_settarget(ino, goal_cpu);
+ sun4v_intr_setenabled(ino, HV_INTR_ENABLED);
} else {
unsigned int tid;