summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_removereadytorun.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-14 19:30:31 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-14 19:30:31 +0000
commite135573acc348649e767ca67a1ec189fe4e0fcda (patch)
treeb34f7d2914cba8aeb9311c5bae3771af40054640 /nuttx/sched/sched_removereadytorun.c
parentd76fa866ad009d65396acf1aa08fcffd3b4b041e (diff)
downloadpx4-nuttx-e135573acc348649e767ca67a1ec189fe4e0fcda.tar.gz
px4-nuttx-e135573acc348649e767ca67a1ec189fe4e0fcda.tar.bz2
px4-nuttx-e135573acc348649e767ca67a1ec189fe4e0fcda.zip
Fix STM32 F2/F4 SDIO clocking; Clean-up files in sched/ directory
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4940 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sched_removereadytorun.c')
-rw-r--r--nuttx/sched/sched_removereadytorun.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/nuttx/sched/sched_removereadytorun.c b/nuttx/sched/sched_removereadytorun.c
index 82c24402c..4982808e2 100644
--- a/nuttx/sched/sched_removereadytorun.c
+++ b/nuttx/sched/sched_removereadytorun.c
@@ -83,9 +83,8 @@
* g_readytorun list) has changed.
*
* Assumptions:
- * - The caller has established a critical section before
- * calling this function (calling sched_lock() first is NOT
- * a good idea -- use irqsave()).
+ * - The caller has established a critical section before calling this
+ * function (calling sched_lock() first is NOT a good idea -- use irqsave()).
* - The caller handles the condition that occurs if the
* the head of the g_readytorun list is changed.
*
@@ -95,9 +94,8 @@ bool sched_removereadytorun(FAR _TCB *rtcb)
{
bool ret = false;
- /* Check if the TCB to be removed is at the head of the ready
- * to run list. In this case, we are removing the currently
- * active task.
+ /* Check if the TCB to be removed is at the head of the ready to run list.
+ * In this case, we are removing the currently active task.
*/
if (!rtcb->blink)