master/master.c
branch1.4-foe
changeset 1710 4522459bb5a4
parent 1707 11ec009e145d
equal deleted inserted replaced
1709:63e4bc918640 1710:4522459bb5a4
   886         if (ec_fsm_master_idle(&master->fsm)) {
   886         if (ec_fsm_master_idle(&master->fsm)) {
   887             set_current_state(TASK_INTERRUPTIBLE);
   887             set_current_state(TASK_INTERRUPTIBLE);
   888             schedule_timeout(1);
   888             schedule_timeout(1);
   889         }
   889         }
   890         else {
   890         else {
   891             schedule();
   891             //schedule();
       
   892             set_current_state(TASK_INTERRUPTIBLE);
       
   893             schedule_timeout(1);
   892         }
   894         }
   893     }
   895     }
   894     
   896     
   895     if (master->debug_level)
   897     if (master->debug_level)
   896         EC_DBG("Master IDLE thread exiting...\n");
   898         EC_DBG("Master IDLE thread exiting...\n");
   931         if (ec_fsm_master_idle(&master->fsm)) {
   933         if (ec_fsm_master_idle(&master->fsm)) {
   932             set_current_state(TASK_INTERRUPTIBLE);
   934             set_current_state(TASK_INTERRUPTIBLE);
   933             schedule_timeout(1);
   935             schedule_timeout(1);
   934         }
   936         }
   935         else {
   937         else {
   936             schedule();
   938             set_current_state(TASK_INTERRUPTIBLE);
       
   939             schedule_timeout(1);
   937         }
   940         }
   938     }
   941     }
   939     
   942     
   940     if (master->debug_level)
   943     if (master->debug_level)
   941         EC_DBG("Master OP thread exiting...\n");
   944         EC_DBG("Master OP thread exiting...\n");