Re: [PATCH] Make Octeon GPIO IRQ chip CPU hotplug-aware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/23/2014 06:55 AM, Alexander Sverdlin wrote:
From: Alexander Sverdlin <alexander.sverdlin@xxxxxxx>

Make Octeon GPIO IRQ chip CPU hotplug-aware

Seems that irq_cpu_offline callbacks were forgotten in v1 and v2 CIU
GPIO chips. There is such a callback for octeon_irq_chip_ciu2_gpio,
covering CIU2 chips. Without this callback GPIO IRQs are not being migrated
during core offlining. Patch is tested on Octeon II.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@xxxxxxx>

Acked-by: David Daney <david.daney@xxxxxxxxxx>

Ralf, please apply.

Thanks,
David Daney



---
--- a/arch/mips/cavium-octeon/octeon-irq.c
+++ b/arch/mips/cavium-octeon/octeon-irq.c
@@ -809,6 +809,7 @@ static struct irq_chip octeon_irq_chip_ciu_gpio_v2 = {
  	.irq_set_type = octeon_irq_ciu_gpio_set_type,
  #ifdef CONFIG_SMP
  	.irq_set_affinity = octeon_irq_ciu_set_affinity_v2,
+	.irq_cpu_offline = octeon_irq_cpu_offline_ciu,
  #endif
  	.flags = IRQCHIP_SET_TYPE_MASKED,
  };
@@ -823,6 +824,7 @@ static struct irq_chip octeon_irq_chip_ciu_gpio = {
  	.irq_set_type = octeon_irq_ciu_gpio_set_type,
  #ifdef CONFIG_SMP
  	.irq_set_affinity = octeon_irq_ciu_set_affinity,
+	.irq_cpu_offline = octeon_irq_cpu_offline_ciu,
  #endif
  	.flags = IRQCHIP_SET_TYPE_MASKED,
  };









[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux