From fefa1a82a0d255e13ec269af06c0a2c9ba402737 Mon Sep 17 00:00:00 2001
From: Giovanni Di Sirio <gdisirio@gmail.com>
Date: Sun, 27 Mar 2016 07:47:27 +0000
Subject: Fixed bug #728.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9165 35acf78f-673a-0410-8e92-d51de3d6d3f4
---
 os/rt/include/chschd.h | 2 +-
 readme.txt             | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/os/rt/include/chschd.h b/os/rt/include/chschd.h
index e91d9a460..4f94f406b 100644
--- a/os/rt/include/chschd.h
+++ b/os/rt/include/chschd.h
@@ -768,7 +768,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 048499a4e..95f28c7fd 100644
--- a/readme.txt
+++ b/readme.txt
@@ -79,6 +79,8 @@
 *****************************************************************************
 
 *** Next ***
+- RT:  Fixed bug in chSchPreemption() function (bug #728)(backported to 2.6.10,
+       3.0.6 and 16.1.5).
 - HAL: All high level file names have been renamed and prefixed with "hal_"
        in order to minimize the risk of name conflicts when integrating
        external libraries. 
-- 
cgit v1.2.3