aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-09-14 10:18:47 -0400
committerThomas Gleixner <tglx@linutronix.de>2016-09-14 16:11:08 -0400
commit28f4b04143c56135b1ca742fc64b664ed04de6a4 (patch)
tree540f709075a896497ea19a6ba40fa8c516653db0 /drivers/base
parent9395452b4aab7bc2475ef8935b4a4fb99d778d70 (diff)
genirq/msi: Add cpumask allocation to alloc_msi_entry
For irq spreading want to store affinity masks in the msi_entry. Add the infrastructure for it. We allocate an array of cpumasks with an array size of the number of used vectors in the entry, so we can hand in the information per linux interrupt later. As we hand in the number of used vectors, we assign them right away. Convert all the call sites. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: axboe@fb.com Cc: keith.busch@intel.com Cc: agordeev@redhat.com Cc: linux-block@vger.kernel.org Cc: Christoph Hellwig <hch@lst.de> Link: http://lkml.kernel.org/r/1473862739-15032-2-git-send-email-hch@lst.de
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/platform-msi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/base/platform-msi.c b/drivers/base/platform-msi.c
index 279e53989374..be6a599bc0c1 100644
--- a/drivers/base/platform-msi.c
+++ b/drivers/base/platform-msi.c
@@ -142,13 +142,12 @@ static int platform_msi_alloc_descs_with_irq(struct device *dev, int virq,
142 } 142 }
143 143
144 for (i = 0; i < nvec; i++) { 144 for (i = 0; i < nvec; i++) {
145 desc = alloc_msi_entry(dev); 145 desc = alloc_msi_entry(dev, 1, NULL);
146 if (!desc) 146 if (!desc)
147 break; 147 break;
148 148
149 desc->platform.msi_priv_data = data; 149 desc->platform.msi_priv_data = data;
150 desc->platform.msi_index = base + i; 150 desc->platform.msi_index = base + i;
151 desc->nvec_used = 1;
152 desc->irq = virq ? virq + i : 0; 151 desc->irq = virq ? virq + i : 0;
153 152
154 list_add_tail(&desc->list, dev_to_msi_list(dev)); 153 list_add_tail(&desc->list, dev_to_msi_list(dev));