diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-03-23 20:14:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-03-23 20:14:21 +0000 |
commit | f054af6f3ae096c6851d8eae0d1d2e98bc631351 (patch) | |
tree | cff1dab1c7daaf9d6ba4d5aceaf5512e386bccf1 /nuttx/sched/task_restart.c | |
parent | 71e43504a2fb13b8b2a2e85f94815c2eadae20d4 (diff) | |
download | px4-nuttx-f054af6f3ae096c6851d8eae0d1d2e98bc631351.tar.gz px4-nuttx-f054af6f3ae096c6851d8eae0d1d2e98bc631351.tar.bz2 px4-nuttx-f054af6f3ae096c6851d8eae0d1d2e98bc631351.zip |
Updated comments; starting to implement priority protection but backed everything out but some changes to comments
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4510 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_restart.c')
-rw-r--r-- | nuttx/sched/task_restart.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nuttx/sched/task_restart.c b/nuttx/sched/task_restart.c index 1cd575a4e..c70a2e945 100644 --- a/nuttx/sched/task_restart.c +++ b/nuttx/sched/task_restart.c @@ -1,8 +1,8 @@ /**************************************************************************** * sched/task_restart.c * - * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt <spudmonkey@racsa.co.cr> + * Copyright (C) 2007, 2009, 2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -146,9 +146,12 @@ int task_restart(pid_t pid) sig_cleanup(tcb); /* Deallocate Signal lists */ - /* Reset the task priority */ + /* Reset the current task priority */ tcb->sched_priority = tcb->init_priority; + + /* Reset the base task priority and the number of pending reprioritizations */ + #ifdef CONFIG_PRIORITY_INHERITANCE tcb->base_priority = tcb->init_priority; # if CONFIG_SEM_NNESTPRIO > 0 |