Re: [RFC v2 PATCH 06/14] irq: add struct ipi_mapping and its helper functions

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

 



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




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

  Powered by Linux