diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-01-10 14:19:15 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-01-10 14:19:15 +0000 |
commit | a746b895fd7e6be0d430c2fa9624d580b44986c6 (patch) | |
tree | a9c5d910e4196e7bd9115fcf35c78e54be9d0acc /src/chschd.c | |
parent | c7b67cff0eab340b5c58f168f4b44bdbc38f6d9b (diff) | |
download | ChibiOS-a746b895fd7e6be0d430c2fa9624d580b44986c6.tar.gz ChibiOS-a746b895fd7e6be0d430c2fa9624d580b44986c6.tar.bz2 ChibiOS-a746b895fd7e6be0d430c2fa9624d580b44986c6.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@174 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chschd.c')
-rw-r--r-- | src/chschd.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/chschd.c b/src/chschd.c index 0507f8e5c..4c3b05760 100644 --- a/src/chschd.c +++ b/src/chschd.c @@ -119,19 +119,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.
*/
@@ -148,6 +135,19 @@ void chSchDoRescheduleI(void) { }
/**
+ * 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
* immediatly else \p FALSE.
|