aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src/chschd.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-06-16 16:30:00 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-06-16 16:30:00 +0000
commit745d8c15044781f1215f2188edcc402fafadd059 (patch)
treebe74d8769cc9ab0ede73b89e3c283494739f7047 /os/kernel/src/chschd.c
parent2e4ba09bb54f415e7f8fd66f4ccddbf421612820 (diff)
downloadChibiOS-745d8c15044781f1215f2188edcc402fafadd059.tar.gz
ChibiOS-745d8c15044781f1215f2188edcc402fafadd059.tar.bz2
ChibiOS-745d8c15044781f1215f2188edcc402fafadd059.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@5861 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src/chschd.c')
-rw-r--r--os/kernel/src/chschd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/kernel/src/chschd.c b/os/kernel/src/chschd.c
index 285c36ba3..ab9b88040 100644
--- a/os/kernel/src/chschd.c
+++ b/os/kernel/src/chschd.c
@@ -116,7 +116,7 @@ void chSchGoSleepS(tstate_t newstate) {
time quantum when it will wakeup.*/
otp->p_preempt = CH_TIME_QUANTUM;
#endif
- setcurrp(fifo_remove(&rlist.r_queue));
+ setcurrp(queue_fifo_remove(&rlist.r_queue));
currp->p_state = THD_STATE_CURRENT;
chSysSwitch(currp, otp);
}
@@ -150,7 +150,7 @@ static void wakeup(void *p) {
case THD_STATE_WTCOND:
#endif
/* States requiring dequeuing.*/
- dequeue(tp);
+ queue_dequeue(tp);
#endif
}
tp->p_u.rdymsg = RDY_TIMEOUT;
@@ -299,7 +299,7 @@ void chSchDoRescheduleBehind(void) {
otp = currp;
/* Picks the first thread from the ready queue and makes it current.*/
- setcurrp(fifo_remove(&rlist.r_queue));
+ setcurrp(queue_fifo_remove(&rlist.r_queue));
currp->p_state = THD_STATE_CURRENT;
#if CH_TIME_QUANTUM > 0
otp->p_preempt = CH_TIME_QUANTUM;
@@ -324,7 +324,7 @@ void chSchDoRescheduleAhead(void) {
otp = currp;
/* Picks the first thread from the ready queue and makes it current.*/
- setcurrp(fifo_remove(&rlist.r_queue));
+ setcurrp(queue_fifo_remove(&rlist.r_queue));
currp->p_state = THD_STATE_CURRENT;
otp->p_state = THD_STATE_READY;