]> Git Repo - linux.git/commit - kernel/irq/manage.c
genirq: Document vcpu_info usage for percpu_devid interrupts
authorChristoffer Dall <[email protected]>
Fri, 27 Oct 2017 08:34:33 +0000 (10:34 +0200)
committerThomas Gleixner <[email protected]>
Sun, 29 Oct 2017 15:18:37 +0000 (16:18 +0100)
commit250a53d6fcd86012935d1cf71eb2e3d6e88c412c
tree6d7bc5f588393984f2fc13ef5f8c29594ae0f633
parentd9ee91c1b1fe56b905b767f4a0063d3624e1a1cf
genirq: Document vcpu_info usage for percpu_devid interrupts

It is currently unclear how to set the VCPU affinity for a percpu_devid
interrupt , since the Linux irq_data structure describes the state for
multiple interrupts, one for each physical CPU on the system.  Since
each such interrupt can be associated with different VCPUs or none at
all, associating a single VCPU state with such an interrupt does not
capture the necessary semantics.

The implementers of irq_set_affinity are the Intel and AMD IOMMUs, and
the ARM GIC irqchip.  The Intel and AMD callers do not appear to use
percpu_devid interrupts, and the ARM GIC implementation only checks the
pointer against NULL vs. non-NULL.

Therefore, simply update the function documentation to explain the
expected use in the context of percpu_devid interrupts, allowing future
changes or additions to irqchip implementers to do the right thing.

Signed-off-by: Christoffer Dall <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Marc Zyngier <[email protected]>
Cc: [email protected]
Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Eric Auger <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
kernel/irq/manage.c
This page took 0.043845 seconds and 4 git commands to generate.