From a8be231257437743118ad5c2d9d7bfef10c806b9 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 24 Nov 2017 10:01:13 +0000 Subject: 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 --- os/rt/src/chschd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'os/rt') 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) */ /** @} */ -- cgit v1.2.3