From 11cdf4251e2d0526e2ae2c5d7af072f1157a8a20 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 11 Mar 2009 00:03:58 +0000 Subject: [PATCH] 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 --- sched/task_restart.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sched/task_restart.c b/sched/task_restart.c index c254dd3039e..00b8bf0a852 100644 --- a/sched/task_restart.c +++ b/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