git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@174 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2008-01-10 14:19:15 +00:00
parent c7b67cff0e
commit a746b895fd
1 changed files with 13 additions and 13 deletions

View File

@ -118,19 +118,6 @@ void chSchWakeupS(Thread *ntp, t_msg msg) {
} }
} }
/**
* If a thread with an higher priority than the current thread is in the
* ready list then it becomes running.
* @note The function must be called in the system mutex zone.
*/
void chSchRescheduleS(void) {
if (isempty(&rlist.r_queue) || firstprio(&rlist.r_queue) <= currp->p_prio)
return;
chSchDoRescheduleI();
}
/** /**
* Performs a reschedulation. It is meant to be called if * Performs a reschedulation. It is meant to be called if
* \p chSchRescRequired() evaluates to \p TRUE. * \p chSchRescRequired() evaluates to \p TRUE.
@ -147,6 +134,19 @@ void chSchDoRescheduleI(void) {
chSysSwitchI(&otp->p_ctx, &currp->p_ctx); chSysSwitchI(&otp->p_ctx, &currp->p_ctx);
} }
/**
* If a thread with an higher priority than the current thread is in the
* ready list then it becomes running.
* @note The function must be called in the system mutex zone.
*/
void chSchRescheduleS(void) {
if (isempty(&rlist.r_queue) || firstprio(&rlist.r_queue) <= currp->p_prio)
return;
chSchDoRescheduleI();
}
/** /**
* Evaluates if a reschedulation is required. * Evaluates if a reschedulation is required.
* @return \p TRUE if there is a thread that should go in running state * @return \p TRUE if there is a thread that should go in running state