]> rtime.felk.cvut.cz Git - frescor/fosa.git/commitdiff
Removing consistency checks in fosa_adsactions_add_activate and
authortelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Mon, 17 Nov 2008 20:09:30 +0000 (20:09 +0000)
committertelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Mon, 17 Nov 2008 20:09:30 +0000 (20:09 +0000)
fosa_ads_actions_add_suspend

git-svn-id: http://www.frescor.org/private/svn/frescor/fosa/trunk@1402 35b4ef3e-fd22-0410-ab77-dab3279adceb

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);
 }