Module: xenomai-3 Branch: arm64 Commit: 78cc1d68bd8ede65b6a86186e899cb9ec8f70fe1 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=78cc1d68bd8ede65b6a86186e899cb9ec8f70fe1
Author: Philippe Gerum <r...@xenomai.org> Date: Sun Sep 27 16:12:02 2015 +0200 drivers/autotune: convert to new style rtdm_task_set_period() --- kernel/cobalt/rtdm/drvlib.c | 2 +- kernel/drivers/autotune/autotune.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/cobalt/rtdm/drvlib.c b/kernel/cobalt/rtdm/drvlib.c index 7b3ab1a..05af769 100644 --- a/kernel/cobalt/rtdm/drvlib.c +++ b/kernel/cobalt/rtdm/drvlib.c @@ -211,7 +211,7 @@ void rtdm_task_set_priority(rtdm_task_t *task, int priority); * to @a period nanoseconds after the current date. * @param[in] period New period in nanoseconds of a cyclic task, zero - * for non-cyclic mode. + * to disable cyclic mode for @a task. * * @coretags{task-unrestricted} * diff --git a/kernel/drivers/autotune/autotune.c b/kernel/drivers/autotune/autotune.c index 8060c3c..8d6cafe 100644 --- a/kernel/drivers/autotune/autotune.c +++ b/kernel/drivers/autotune/autotune.c @@ -244,8 +244,8 @@ void task_handler(void *arg) if (ret) break; - ret = xnthread_set_periodic(&k_tuner->task, k_tuner->start_time, - XN_ABSOLUTE, k_tuner->interval); + ret = rtdm_task_set_period(&k_tuner->task, k_tuner->start_time, + k_tuner->interval); if (ret) break; @@ -256,7 +256,7 @@ void task_handler(void *arg) now = xnclock_read_raw(&nkclock); if (add_sample(&k_tuner->tuner, now)) { - rtdm_task_set_period(&k_tuner->task, 0); + rtdm_task_set_period(&k_tuner->task, 0, 0); break; } } _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://xenomai.org/mailman/listinfo/xenomai-git