On 12/04/2017 06:44 PM, Piotr Piorkowski wrote:
>    Hi
> 
>    Can I affinity rtdm task to to specific core CPU ? If I can, how should
>    I do it ?
> 

There is no provision for this in the RTDM API unfortunately.

You have the option of hacking with the Cobalt internal API from your
RTDM task implementation this way:

void rtdm_task(void *arg)
{
        struct task_struct *p = current;

        xnthread_relax(0);
        set_cpus_allowed_ptr(p, cpumask_of(cpu_number));
        xnthread_harden();

        /* your code */
}

-- 
Philippe.

_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to