diff options
-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.
|