From a746b895fd7e6be0d430c2fa9624d580b44986c6 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 10 Jan 2008 14:19:15 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@174 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chschd.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/chschd.c b/src/chschd.c index 0507f8e5c..4c3b05760 100644 --- a/src/chschd.c +++ b/src/chschd.c @@ -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 * \p chSchRescRequired() evaluates to \p TRUE. @@ -147,6 +134,19 @@ void chSchDoRescheduleI(void) { 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. * @return \p TRUE if there is a thread that should go in running state -- cgit v1.2.3