Re: [RFC v2 PATCH 06/14] irq: add struct ipi_mapping and its helper functions
From: Qais Yousef
Date: Tue Oct 13 2015 - 10:30:15 EST
On 10/13/2015 02:31 PM, Thomas Gleixner wrote:
On Tue, 13 Oct 2015, Qais Yousef wrote:
+
+int irq_unmap_ipi(struct ipi_mapping *map,
+ unsigned int cpu, irq_hw_number_t *hwirq)
+{
+ if (cpu >= map->nr_cpus)
+ return -EINVAL;
+
+ if (map->cpumap[cpu] == INVALID_HWIRQ)
+ return -EINVAL;
+
+ if (hwirq)
+ *hwirq = map->cpumap[cpu];
Why do we store hwirq in unmap?
So that the irqchip driver can return the hwirq to its available IPI pool.
All these new functions lack kerneldoc comments.
Apologies about the missing docs here and in other places.
Thanks,
Qais
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/