[Xenomai] [PATCH 1/3] cobalt: rtdm: Add function rtdm_irq_affinity().

Christoph Muellner christoph.muellner at theobroma-systems.com
Mon Oct 23 16:59:42 CEST 2017


This patch adds a RTDM API to set a IRQ's CPU affinity.

Signed-off-by: Christoph Muellner <christoph.muellner at theobroma-systems.com>
---
 include/cobalt/kernel/rtdm/driver.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/cobalt/kernel/rtdm/driver.h b/include/cobalt/kernel/rtdm/driver.h
index 0c7b62e75..803cdbfe4 100644
--- a/include/cobalt/kernel/rtdm/driver.h
+++ b/include/cobalt/kernel/rtdm/driver.h
@@ -874,6 +874,12 @@ static inline int rtdm_irq_disable(rtdm_irq_t *irq_handle)
 	xnintr_disable(irq_handle);
 	return 0;
 }
+
+static inline int rtdm_irq_affinity(rtdm_irq_t *irq_handle, cpumask_t tgt)
+{
+	xnintr_affinity(irq_handle, tgt);
+	return 0;
+}
 #endif /* !DOXYGEN_CPP */
 
 /* --- non-real-time signalling services --- */
-- 
2.11.0




More information about the Xenomai mailing list