summaryrefslogtreecommitdiffstats
path: root/include/linux/interrupt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/interrupt.h')
-rw-r--r--include/linux/interrupt.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
index 35e7389c2011..5afdfd5dc39b 100644
--- a/include/linux/interrupt.h
+++ b/include/linux/interrupt.h
@@ -241,20 +241,23 @@ struct irq_affinity_notify {
241 void (*release)(struct kref *ref); 241 void (*release)(struct kref *ref);
242}; 242};
243 243
244#define IRQ_AFFINITY_MAX_SETS 4
245
244/** 246/**
245 * struct irq_affinity - Description for automatic irq affinity assignements 247 * struct irq_affinity - Description for automatic irq affinity assignements
246 * @pre_vectors: Don't apply affinity to @pre_vectors at beginning of 248 * @pre_vectors: Don't apply affinity to @pre_vectors at beginning of
247 * the MSI(-X) vector space 249 * the MSI(-X) vector space
248 * @post_vectors: Don't apply affinity to @post_vectors at end of 250 * @post_vectors: Don't apply affinity to @post_vectors at end of
249 * the MSI(-X) vector space 251 * the MSI(-X) vector space
250 * @nr_sets: Length of passed in *sets array 252 * @nr_sets: The number of interrupt sets for which affinity
251 * @sets: Number of affinitized sets 253 * spreading is required
254 * @set_size: Array holding the size of each interrupt set
252 */ 255 */
253struct irq_affinity { 256struct irq_affinity {
254 unsigned int pre_vectors; 257 unsigned int pre_vectors;
255 unsigned int post_vectors; 258 unsigned int post_vectors;
256 unsigned int nr_sets; 259 unsigned int nr_sets;
257 unsigned int *sets; 260 unsigned int set_size[IRQ_AFFINITY_MAX_SETS];
258}; 261};
259 262
260/** 263/**