aboutsummaryrefslogtreecommitdiffstats
path: root/src/chmsg.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-09-06 08:56:34 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-09-06 08:56:34 +0000
commit15ee17c8740a378cffcae681421b9e28fcde3d4c (patch)
treed5af4d9abff327bc5c05ec2b5ba56a6668aacf28 /src/chmsg.c
parent517440bad9d6d2f27689e4e3de72794d869d2c26 (diff)
downloadChibiOS-15ee17c8740a378cffcae681421b9e28fcde3d4c.tar.gz
ChibiOS-15ee17c8740a378cffcae681421b9e28fcde3d4c.tar.bz2
ChibiOS-15ee17c8740a378cffcae681421b9e28fcde3d4c.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@426 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chmsg.c')
-rw-r--r--src/chmsg.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/chmsg.c b/src/chmsg.c
index 03b7edd01..5a1ce4b15 100644
--- a/src/chmsg.c
+++ b/src/chmsg.c
@@ -37,10 +37,7 @@ msg_t chMsgSend(Thread *tp, msg_t msg) {
chSysLock();
#ifdef CH_USE_MESSAGES_PRIORITY
- if (tp->p_flags & P_MSGBYPRIO)
- prio_insert(currp, &tp->p_msgqueue);
- else
- queue_insert(currp, &tp->p_msgqueue);
+ prio_insert(currp, &tp->p_msgqueue);
#else
queue_insert(currp, &tp->p_msgqueue);
#endif
@@ -76,10 +73,7 @@ msg_t chMsgSendWithEvent(Thread *tp, msg_t msg, EventSource *esp) {
chDbgAssert(tp->p_state != PRWTMSG, "chmsg.c, chMsgSendWithEvent()");
#ifdef CH_USE_MESSAGES_PRIORITY
- if (tp->p_flags & P_MSGBYPRIO)
- prio_insert(currp, &tp->p_msgqueue);
- else
- queue_insert(currp, &tp->p_msgqueue);
+ prio_insert(currp, &tp->p_msgqueue);
#else
queue_insert(currp, &tp->p_msgqueue);
#endif