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

Philippe Gerum rpm at xenomai.org
Sun Oct 29 18:29:44 CET 2017


On 10/23/2017 04:59 PM, Christoph Muellner wrote:
> 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 --- */
> 

A bit of documentation is missing in drvlib.c for this new call (could
follow the doc for rtdm_irq_disable() there).

-- 
Philippe.



More information about the Xenomai mailing list