From: telleriam Date: Mon, 17 Nov 2008 20:09:30 +0000 (+0000) Subject: Removing consistency checks in fosa_adsactions_add_activate and X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/fosa.git/commitdiff_plain/6abf0b24589ce4683b588d8e9a6942fece1fe8e8 Removing consistency checks in fosa_adsactions_add_activate and fosa_ads_actions_add_suspend git-svn-id: http://www.frescor.org/private/svn/frescor/fosa/trunk@1402 35b4ef3e-fd22-0410-ab77-dab3279adceb --- 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); }