OS test, sporadic scheduler test: If more timers are available, use them
This commit is contained in:
parent
70f1ee9dcd
commit
c27364570f
@ -286,7 +286,7 @@ void sporadic_test(void)
|
|||||||
sparam.sched_ss_repl_period.tv_nsec = 0;
|
sparam.sched_ss_repl_period.tv_nsec = 0;
|
||||||
sparam.sched_ss_init_budget.tv_sec = 2;
|
sparam.sched_ss_init_budget.tv_sec = 2;
|
||||||
sparam.sched_ss_init_budget.tv_nsec = 0;
|
sparam.sched_ss_init_budget.tv_nsec = 0;
|
||||||
sparam.sched_ss_max_repl = MIN(5, CONFIG_SCHED_SPORADIC_MAXREPL);
|
sparam.sched_ss_max_repl = CONFIG_SCHED_SPORADIC_MAXREPL;
|
||||||
|
|
||||||
ret = pthread_attr_setschedparam(&attr, &sparam);
|
ret = pthread_attr_setschedparam(&attr, &sparam);
|
||||||
if (ret != OK)
|
if (ret != OK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user