aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src/chschd.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-09-13 12:06:08 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-09-13 12:06:08 +0000
commitd688b84d2585d3bedbd682417313bcb581b1a1fc (patch)
treee85b89a70b154a1b07c6ae3513fdad2a8cfc0140 /os/kernel/src/chschd.c
parentc5496788e53c99371c2f4a36c67dcbf556176398 (diff)
downloadChibiOS-d688b84d2585d3bedbd682417313bcb581b1a1fc.tar.gz
ChibiOS-d688b84d2585d3bedbd682417313bcb581b1a1fc.tar.bz2
ChibiOS-d688b84d2585d3bedbd682417313bcb581b1a1fc.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1162 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src/chschd.c')
-rw-r--r--os/kernel/src/chschd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/os/kernel/src/chschd.c b/os/kernel/src/chschd.c
index 08ecf46a0..7c65e3fd6 100644
--- a/os/kernel/src/chschd.c
+++ b/os/kernel/src/chschd.c
@@ -211,7 +211,7 @@ void chSchDoRescheduleI(void) {
*/
void chSchRescheduleS(void) {
- if (chSchMustRescheduleS())
+ if (chSchIsRescRequiredI())
chSchDoRescheduleI();
}
@@ -222,8 +222,11 @@ void chSchRescheduleS(void) {
*
* @retval TRUE if there is a thread that should go in running state.
* @retval FALSE if a reschedulation is not required.
+ *
+ * @note This function is meant to be used in the timer interrupt handler
+ * where @p chVTDoTickI() is invoked.
*/
-bool_t chSchRescRequiredI(void) {
+bool_t chSchIsRescRequiredExI(void) {
tprio_t p1 = firstprio(&rlist.r_queue);
tprio_t p2 = currp->p_prio;
#if CH_USE_ROUNDROBIN