summaryrefslogtreecommitdiff
path: root/nuttx/sched/task_restart.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-11 00:03:58 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-11 00:03:58 +0000
commite4d2f8d32a3c3fa79a7e76c7260fa5e5a12872d1 (patch)
tree53f64deef0d7174c3218a6a5e381fc3f28502804 /nuttx/sched/task_restart.c
parentb9648c396b1fae393e6a20c7ddd3debee89b5cb9 (diff)
downloadpx4-nuttx-e4d2f8d32a3c3fa79a7e76c7260fa5e5a12872d1.tar.gz
px4-nuttx-e4d2f8d32a3c3fa79a7e76c7260fa5e5a12872d1.tar.bz2
px4-nuttx-e4d2f8d32a3c3fa79a7e76c7260fa5e5a12872d1.zip
Repartition functionality in preparation for nested, pending reprioritization
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1592 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_restart.c')
-rw-r--r--nuttx/sched/task_restart.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nuttx/sched/task_restart.c b/nuttx/sched/task_restart.c
index c254dd303..00b8bf0a8 100644
--- a/nuttx/sched/task_restart.c
+++ b/nuttx/sched/task_restart.c
@@ -151,6 +151,9 @@ STATUS task_restart(pid_t pid)
tcb->sched_priority = tcb->init_priority;
#ifdef CONFIG_PRIORITY_INHERITANCE
tcb->base_priority = tcb->init_priority;
+# if CONFIG_SEM_NNESTPRIO > 0
+ tcb->npend_reprio = 0;
+# endif
#endif
/* Re-initialize the processor-specific portion of the TCB