diff options
author | David S. Miller <davem@davemloft.net> | 2007-06-26 03:13:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-06-26 03:13:31 -0400 |
commit | a357b8f42e7b85e2522c3ad2b29b685bc28743b4 (patch) | |
tree | 72c8f25c1d1beb75adb226fcb16c42d763a717fa /arch/sparc64 | |
parent | 1245088400c0e5f93b979356e578c9a8825b953a (diff) |
[SPARC64]: Need to set state to IDLE during sun4v IRQ enable.
This fixes hypervisor console interrupts on LDOM guests.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/kernel/irq.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/irq.c b/arch/sparc64/kernel/irq.c index a862d13fc857..6b6165d36fd8 100644 --- a/arch/sparc64/kernel/irq.c +++ b/arch/sparc64/kernel/irq.c | |||
@@ -329,6 +329,10 @@ static void sun4v_irq_enable(unsigned int virt_irq) | |||
329 | if (err != HV_EOK) | 329 | if (err != HV_EOK) |
330 | printk("sun4v_intr_settarget(%x,%lu): err(%d)\n", | 330 | printk("sun4v_intr_settarget(%x,%lu): err(%d)\n", |
331 | ino, cpuid, err); | 331 | ino, cpuid, err); |
332 | err = sun4v_intr_setstate(ino, HV_INTR_STATE_IDLE); | ||
333 | if (err != HV_EOK) | ||
334 | printk("sun4v_intr_setstate(%x): " | ||
335 | "err(%d)\n", ino, err); | ||
332 | err = sun4v_intr_setenabled(ino, HV_INTR_ENABLED); | 336 | err = sun4v_intr_setenabled(ino, HV_INTR_ENABLED); |
333 | if (err != HV_EOK) | 337 | if (err != HV_EOK) |
334 | printk("sun4v_intr_setenabled(%x): err(%d)\n", | 338 | printk("sun4v_intr_setenabled(%x): err(%d)\n", |