diff --git a/os/rt/include/chschd.h b/os/rt/include/chschd.h index 78def25a4..a42d53959 100644 --- a/os/rt/include/chschd.h +++ b/os/rt/include/chschd.h @@ -770,7 +770,7 @@ static inline void chSchPreemption(void) { } } #else /* CH_CFG_TIME_QUANTUM == 0 */ - if (p1 >= p2) { + if (p1 > p2) { chSchDoRescheduleAhead(); } #endif /* CH_CFG_TIME_QUANTUM == 0 */ diff --git a/readme.txt b/readme.txt index d83b4e351..2e6960f69 100644 --- a/readme.txt +++ b/readme.txt @@ -73,6 +73,7 @@ ***************************************************************************** *** 16.1.5 *** +- RT: Fixed bug in chSchPreemption() function (bug #728). - HAL: Fixed prescaler not initialized in STM32 ADCv1 (bug #725). - HAL: Fixed missing DAC section in STM32F072 mcuconf.h files (bug #724).