diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-07-04 17:39:25 +0900 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-07-04 12:25:13 +0200 |
commit | 45ddcecbfa947f1dd8e8019bad9e90d6c9f2665c (patch) | |
tree | 475ecc8b14f0fdc39689a943bebc05972810a19a /include/linux | |
parent | 06ee6d571f0e350253a8fc3492316b2be007fae2 (diff) | |
download | lwn-45ddcecbfa947f1dd8e8019bad9e90d6c9f2665c.tar.gz lwn-45ddcecbfa947f1dd8e8019bad9e90d6c9f2665c.zip |
genirq: Use affinity hint in irqdesc allocation
Use the affinity hint in the irqdesc allocator. The hint is used to determine
the node for the allocation and to set the affinity of the interrupt.
If multiple interrupts are allocated (multi-MSI) then the allocator iterates
over the cpumask and for each set cpu it allocates on their node and sets the
initial affinity to that cpu.
If a single interrupt is allocated (MSI-X) then the allocator uses the first
cpu in the mask to compute the allocation node and uses the mask for the
initial affinity setting.
Interrupts set up this way are marked with the AFFINITY_MANAGED flag to
prevent userspace from messing with their affinity settings.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Christoph Hellwig <hch@lst.de>
Cc: linux-block@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Cc: linux-nvme@lists.infradead.org
Cc: axboe@fb.com
Cc: agordeev@redhat.com
Link: http://lkml.kernel.org/r/1467621574-8277-5-git-send-email-hch@lst.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions