From 71ccd7eb14c4cb3cc4362feda7adc19ec2fd0ff8 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 27 Nov 2017 10:22:40 +0000 Subject: Renamed thread field "preempt" in "ticks" for clearness. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11079 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/src/chthreads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/rt/src/chthreads.c') diff --git a/os/rt/src/chthreads.c b/os/rt/src/chthreads.c index 84a062b86..fcd6aefe3 100644 --- a/os/rt/src/chthreads.c +++ b/os/rt/src/chthreads.c @@ -91,7 +91,7 @@ thread_t *_thread_init(thread_t *tp, const char *name, tprio_t prio) { tp->state = CH_STATE_WTSTART; tp->flags = CH_FLAG_MODE_STATIC; #if CH_CFG_TIME_QUANTUM > 0 - tp->preempt = (tslices_t)CH_CFG_TIME_QUANTUM; + tp->ticks = (tslices_t)CH_CFG_TIME_QUANTUM; #endif #if CH_CFG_USE_MUTEXES == TRUE tp->realprio = prio; -- cgit v1.2.3