Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1231481
| From | Qais Yousef <qais.yousef@imgtec.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/6] irqdomain: add new IRQ_DOMAIN_FLAGS_IPI |
| Date | 2015-09-23 16:50 +0200 |
| Message-ID | <qbTwS-78H-3@gated-at.bofh.it> (permalink) |
| References | <qbTwR-78H-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This flag will be used to identify an IPI domain.
The idea is to reuse the alloc functions to allocate an IPI if it's set.
We could alternatively add a separate new alloc_ipi() function to struct
domain_ops.
Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
---
include/linux/irqdomain.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
index d3ca79236fb0..9b3dc6c2a3cc 100644
--- a/include/linux/irqdomain.h
+++ b/include/linux/irqdomain.h
@@ -153,6 +153,9 @@ enum {
/* Core calls alloc/free recursive through the domain hierarchy. */
IRQ_DOMAIN_FLAG_AUTO_RECURSIVE = (1 << 1),
+ /* Irq domain is an IPI domain */
+ IRQ_DOMAIN_FLAG_IPI = (1 << 2),
+
/*
* Flags starting from IRQ_DOMAIN_FLAG_NONCORE are reserved
* for implementation specific purposes and ignored by the
@@ -326,6 +329,11 @@ static inline bool irq_domain_is_hierarchy(struct irq_domain *domain)
{
return domain->flags & IRQ_DOMAIN_FLAG_HIERARCHY;
}
+
+static inline bool irq_domain_is_ipi(struct irq_domain *domain)
+{
+ return domain->flags & IRQ_DOMAIN_FLAG_IPI;
+}
#else /* CONFIG_IRQ_DOMAIN_HIERARCHY */
static inline void irq_domain_activate_irq(struct irq_data *data) { }
static inline void irq_domain_deactivate_irq(struct irq_data *data) { }
@@ -339,6 +347,11 @@ static inline bool irq_domain_is_hierarchy(struct irq_domain *domain)
{
return false;
}
+
+static inline bool irq_domain_is_ipi(struct irq_domain *domain)
+{
+ return false;
+}
#endif /* CONFIG_IRQ_DOMAIN_HIERARCHY */
#else /* CONFIG_IRQ_DOMAIN */
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/6] Implement generic IPI support mechanism Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 16:50 +0200
[PATCH 1/6] irqdomain: add new IRQ_DOMAIN_FLAGS_IPI Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 16:50 +0200
[PATCH 2/6] irqdomain: add a new send_ipi() to irq_domain_ops Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 16:50 +0200
Re: [PATCH 2/6] irqdomain: add a new send_ipi() to irq_domain_ops Jiang Liu <jiang.liu@linux.intel.com> - 2015-09-23 18:50 +0200
Re: [PATCH 2/6] irqdomain: add a new send_ipi() to irq_domain_ops Qais Yousef <qais.yousef@imgtec.com> - 2015-09-24 10:20 +0200
[PATCH 5/6] irqchip: mips-gic: add a IPI hierarchy domain Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 17:00 +0200
[PATCH 6/6] irqchip: mips-gic: use the new generic IPI API Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 17:00 +0200
[PATCH 4/6] irq: add a new generic IPI handling code to irq core Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 17:00 +0200
Re: [PATCH 4/6] irq: add a new generic IPI handling code to irq core Jiang Liu <jiang.liu@linux.intel.com> - 2015-09-23 19:00 +0200
Re: [PATCH 4/6] irq: add a new generic IPI handling code to irq core Qais Yousef <qais.yousef@imgtec.com> - 2015-09-24 10:30 +0200
Re: [PATCH 4/6] irq: add a new generic IPI handling code to irq core Thomas Gleixner <tglx@linutronix.de> - 2015-09-29 18:20 +0200
[PATCH 3/6] irqdomain: add struct irq_hwcfg and helper functions Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 17:00 +0200
Re: [PATCH 0/6] Implement generic IPI support mechanism Jiang Liu <jiang.liu@linux.intel.com> - 2015-09-23 19:00 +0200
Re: [PATCH 0/6] Implement generic IPI support mechanism Qais Yousef <qais.yousef@imgtec.com> - 2015-09-24 10:40 +0200
Re: [PATCH 0/6] Implement generic IPI support mechanism Thomas Gleixner <tglx@linutronix.de> - 2015-09-29 22:50 +0200
Re: [PATCH 0/6] Implement generic IPI support mechanism Qais Yousef <qais.yousef@imgtec.com> - 2015-09-30 15:40 +0200
Re: [PATCH 0/6] Implement generic IPI support mechanism Thomas Gleixner <tglx@linutronix.de> - 2015-09-30 16:10 +0200
Re: [PATCH 0/6] Implement generic IPI support mechanism Qais Yousef <qais.yousef@imgtec.com> - 2015-09-30 16:10 +0200
csiph-web