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