summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_lock.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_lock.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_lock.c')
-rw-r--r--nuttx/sched/sched_lock.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/sched/sched_lock.c b/nuttx/sched/sched_lock.c
index 2dd406203..61a8a3bc8 100644
--- a/nuttx/sched/sched_lock.c
+++ b/nuttx/sched/sched_lock.c
@@ -2,7 +2,7 @@
* sched/sched_lock.c
*
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * 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
@@ -77,11 +77,10 @@
* Name: sched_lock
*
* Description:
- * This function disables context switching by disabling
- * addition of new tasks to the g_readytorun task list.
- * The task that calls this function will be the only task
- * that is allowed to run until it either calls
- * sched_unlock() (the appropriate number of times) or
+ * This function disables context switching by disabling addition of
+ * new tasks to the g_readytorun task list. The task that calls this
+ * function will be the only task that is allowed to run until it
+ * either calls sched_unlock() (the appropriate number of times) or
* until it blocks itself.
*
* Inputs
@@ -106,5 +105,6 @@ int sched_lock(void)
ASSERT(rtcb->lockcount < MAX_LOCK_COUNT);
rtcb->lockcount++;
}
+
return OK;
}