diff options
Diffstat (limited to 'include/linux/irq.h')
| -rw-r--r-- | include/linux/irq.h | 23 | 
1 files changed, 23 insertions, 0 deletions
| diff --git a/include/linux/irq.h b/include/linux/irq.h index 30a300991ed4..cefacf928b33 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
| @@ -398,6 +398,29 @@ static inline struct irq_2_iommu *irq_data_get_iommu(struct irq_data *d) | |||
| 398 | } | 398 | } | 
| 399 | #endif | 399 | #endif | 
| 400 | 400 | ||
| 401 | int irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node); | ||
| 402 | void irq_free_descs(unsigned int irq, unsigned int cnt); | ||
| 403 | |||
| 404 | static inline int irq_alloc_desc(int node) | ||
| 405 | { | ||
| 406 | return irq_alloc_descs(-1, 0, 1, node); | ||
| 407 | } | ||
| 408 | |||
| 409 | static inline int irq_alloc_desc_at(unsigned int at, int node) | ||
| 410 | { | ||
| 411 | return irq_alloc_descs(at, at, 1, node); | ||
| 412 | } | ||
| 413 | |||
| 414 | static inline int irq_alloc_desc_from(unsigned int from, int node) | ||
| 415 | { | ||
| 416 | return irq_alloc_descs(-1, from, 1, node); | ||
| 417 | } | ||
| 418 | |||
| 419 | static inline void irq_free_desc(unsigned int irq) | ||
| 420 | { | ||
| 421 | irq_free_descs(irq, 1); | ||
| 422 | } | ||
| 423 | |||
| 401 | #endif /* CONFIG_GENERIC_HARDIRQS */ | 424 | #endif /* CONFIG_GENERIC_HARDIRQS */ | 
| 402 | 425 | ||
| 403 | #endif /* !CONFIG_S390 */ | 426 | #endif /* !CONFIG_S390 */ | 
