X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/fosa.git/blobdiff_plain/8239676add1783e9af4cb186c3fa355c993febd8..6abf0b24589ce4683b588d8e9a6942fece1fe8e8:/src_marte_os/fosa_app_def_sched.c diff --git a/src_marte_os/fosa_app_def_sched.c b/src_marte_os/fosa_app_def_sched.c index bf5022d..c158ab9 100644 --- a/src_marte_os/fosa_app_def_sched.c +++ b/src_marte_os/fosa_app_def_sched.c @@ -871,17 +871,6 @@ int fosa_adsactions_add_activate( fosa_thread_id_t thread, fosa_ads_urgency_t urgency) { -#ifdef FULL_ERROR_CHECKING - // check errors - struct sched_param param; - int policy; - - CHK(pthread_getschedparam(thread,&policy,¶m)); - if (policy!=SCHED_APP) { - return FOSA_EPOLICY; - } -#endif // end if FULL_ERROR_CHECKING - sched_actions->activated=true; return posix_appsched_actions_addactivate(&(sched_actions->actions),thread); } @@ -913,16 +902,6 @@ int fosa_adsactions_add_suspend( fosa_ads_actions_t *sched_actions, fosa_thread_id_t thread) { -#ifdef FULL_ERROR_CHECKING - // check errors - struct sched_param param; - int policy; - - CHK(pthread_getschedparam(thread,&policy,¶m)); - if (policy!=SCHED_APP) { - return FOSA_EPOLICY; - } -#endif // end if FULL_ERROR_CHECKING sched_actions->suspended=true; return posix_appsched_actions_addsuspend(&(sched_actions->actions),thread); }