]> rtime.felk.cvut.cz Git - frescor/fosa.git/blobdiff - src_marte_os/fosa_app_def_sched.c
Removing consistency checks in fosa_adsactions_add_activate and
[frescor/fosa.git] / src_marte_os / fosa_app_def_sched.c
index bf5022dacc789bc5eb72e204ab2f5e554dd02033..c158ab9dbbaeb08031ff25af7abf693db4bf7dba 100644 (file)
@@ -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,&param));
-   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,&param));
-   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);
 }