diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-14 19:30:31 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-14 19:30:31 +0000 |
commit | 4ea9aa3ff134d0d893be8f8eaa6955c8b35e405b (patch) | |
tree | b34f7d2914cba8aeb9311c5bae3771af40054640 /nuttx/sched/sched_reprioritize.c | |
parent | 876ffbd29fcd090094da7be50a9b2f26bb1bab02 (diff) | |
download | px4-firmware-4ea9aa3ff134d0d893be8f8eaa6955c8b35e405b.tar.gz px4-firmware-4ea9aa3ff134d0d893be8f8eaa6955c8b35e405b.tar.bz2 px4-firmware-4ea9aa3ff134d0d893be8f8eaa6955c8b35e405b.zip |
Fix STM32 F2/F4 SDIO clocking; Clean-up files in sched/ directory
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4940 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/sched/sched_reprioritize.c')
-rw-r--r-- | nuttx/sched/sched_reprioritize.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/nuttx/sched/sched_reprioritize.c b/nuttx/sched/sched_reprioritize.c index 3fa1c4da0..bd316ec75 100644 --- a/nuttx/sched/sched_reprioritize.c +++ b/nuttx/sched/sched_reprioritize.c @@ -81,9 +81,9 @@ * Description: * This function sets the priority of a specified task. * - * NOTE: Setting a task's priority to the same value has a similar - * effect to sched_yield() -- The task will be moved to after all other - * tasks with the same priority. + * NOTE: Setting a task's priority to the same value has a similar effect + * to sched_yield() -- The task will be moved to after all other tasks + * with the same priority. * * Inputs: * tcb - the TCB of task to reprioritize. @@ -93,8 +93,8 @@ * On success, sched_setparam() returns 0 (OK). On error, -1 * (ERROR) is returned, and errno is set appropriately. * - * EINVAL The parameter 'param' is invalid or does not make - * sense for the current scheduling policy. + * EINVAL The parameter 'param' is invalid or does not make sense for the + * current scheduling policy. * EPERM The calling task does not have appropriate privileges. * ESRCH The task whose ID is pid could not be found. * @@ -120,9 +120,9 @@ int sched_reprioritize(FAR _TCB *tcb, int sched_priority) /* Discard any pending reprioritizations as well */ -# if CONFIG_SEM_NNESTPRIO > 0 +#if CONFIG_SEM_NNESTPRIO > 0 tcb->npend_reprio = 0; -# endif +#endif } return ret; } |