summaryrefslogtreecommitdiff
path: root/nuttx/arch/pjrc-8051
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-17 21:32:21 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-17 21:32:21 +0000
commite9faebc794c798462a34d5fae9c922d46e95a374 (patch)
tree41f650510bb4f327ed7bf981fac39bef006d8bb7 /nuttx/arch/pjrc-8051
parent054179a134bf123279f6c3774a773d838e95c181 (diff)
downloadpx4-nuttx-e9faebc794c798462a34d5fae9c922d46e95a374.tar.gz
px4-nuttx-e9faebc794c798462a34d5fae9c922d46e95a374.tar.bz2
px4-nuttx-e9faebc794c798462a34d5fae9c922d46e95a374.zip
Add test of roundrobin scheduler (still does not work)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@81 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/pjrc-8051')
-rw-r--r--nuttx/arch/pjrc-8051/src/up_reprioritizertr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/pjrc-8051/src/up_reprioritizertr.c b/nuttx/arch/pjrc-8051/src/up_reprioritizertr.c
index 1b8a3adbf..b148e755c 100644
--- a/nuttx/arch/pjrc-8051/src/up_reprioritizertr.c
+++ b/nuttx/arch/pjrc-8051/src/up_reprioritizertr.c
@@ -134,7 +134,7 @@ void up_reprioritize_rtr(FAR _TCB *tcb, ubyte priority)
sched_mergepending();
}
- /* Are we in an interrupt handler? */
+ /* Are we in an interrupt handler? */
if (g_irqtos)
{
@@ -163,7 +163,7 @@ void up_reprioritize_rtr(FAR _TCB *tcb, ubyte priority)
* value, then this is really the previously running task restarting!
*/
- if (!up_savecontext(&rtcb->xcp))
+ else if (!up_savecontext(&rtcb->xcp))
{
/* Restore the exception context of the rtcb at the (new) head
* of the g_readytorun task list.