diff options
Diffstat (limited to 'os/rt/include/chschd.h')
-rw-r--r-- | os/rt/include/chschd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/rt/include/chschd.h b/os/rt/include/chschd.h index f62f6d709..c5cc00b22 100644 --- a/os/rt/include/chschd.h +++ b/os/rt/include/chschd.h @@ -181,7 +181,7 @@ struct ch_thread { * @brief Number of ticks remaining to this thread.
*/
#if (CH_CFG_TIME_QUANTUM > 0) || defined(__DOXYGEN__)
- tslices_t preempt;
+ tslices_t ticks;
#endif
#if (CH_DBG_THREADS_PROFILING == TRUE) || defined(__DOXYGEN__)
/**
@@ -694,7 +694,7 @@ static inline void chSchPreemption(void) { tprio_t p2 = currp->prio;
#if CH_CFG_TIME_QUANTUM > 0
- if (currp->preempt > (tslices_t)0) {
+ if (currp->ticks > (tslices_t)0) {
if (p1 > p2) {
chSchDoRescheduleAhead();
}
|