aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-11-24 10:01:13 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-11-24 10:01:13 +0000
commita8be231257437743118ad5c2d9d7bfef10c806b9 (patch)
treec8fa680d46bff67e332c6114ae5010b6ae6671a9 /os/rt
parentc1b1a5e111dcf751170498793a205219394a6687 (diff)
downloadChibiOS-a8be231257437743118ad5c2d9d7bfef10c806b9.tar.gz
ChibiOS-a8be231257437743118ad5c2d9d7bfef10c806b9.tar.bz2
ChibiOS-a8be231257437743118ad5c2d9d7bfef10c806b9.zip
Experimental preemptive round robin module. To be tested.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11074 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt')
-rw-r--r--os/rt/src/chschd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/rt/src/chschd.c b/os/rt/src/chschd.c
index 476b19836..62ca81d50 100644
--- a/os/rt/src/chschd.c
+++ b/os/rt/src/chschd.c
@@ -462,6 +462,7 @@ void chSchRescheduleS(void) {
}
}
+#if !defined(CH_SCH_IS_PREEMPTION_REQUIRED_HOOKED)
/**
* @brief Evaluates if preemption is required.
* @details The decision is taken by comparing the relative priorities and
@@ -491,6 +492,7 @@ bool chSchIsPreemptionRequired(void) {
return p1 > p2;
#endif
}
+#endif /* !defined(CH_SCH_IS_PREEMPTION_REQUIRED_HOOKED) */
/**
* @brief Switches to the first thread on the runnable queue.
@@ -554,6 +556,7 @@ void chSchDoRescheduleAhead(void) {
chSysSwitch(currp, otp);
}
+#if !defined(CH_SCH_DO_RESCHEDULE_HOOKED)
/**
* @brief Switches to the first thread on the runnable queue.
* @details The current thread is positioned in the ready list behind or
@@ -602,5 +605,6 @@ void chSchDoReschedule(void) {
/* Swap operation as tail call.*/
chSysSwitch(currp, otp);
}
+#endif /*!defined(CH_SCH_DO_RESCHEDULE_HOOKED) */
/** @} */