diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-11 00:03:58 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-11 00:03:58 +0000 |
commit | e4d2f8d32a3c3fa79a7e76c7260fa5e5a12872d1 (patch) | |
tree | 53f64deef0d7174c3218a6a5e381fc3f28502804 /nuttx | |
parent | b9648c396b1fae393e6a20c7ddd3debee89b5cb9 (diff) | |
download | px4-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')
-rw-r--r-- | nuttx/sched/task_restart.c | 3 |
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 |