summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/corespinlockwait.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-11-29 13:51:53 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-11-29 13:51:53 +0000
commit28352faecf8b000b71f734cd728f38aa212b9669 (patch)
treec8e773b36bf32ba725cc1548e515f2fa9f8ebe96 /cpukit/score/src/corespinlockwait.c
parentWhitespace removal. (diff)
downloadrtems-28352faecf8b000b71f734cd728f38aa212b9669.tar.bz2
Whitespace removal.
Diffstat (limited to 'cpukit/score/src/corespinlockwait.c')
-rw-r--r--cpukit/score/src/corespinlockwait.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/score/src/corespinlockwait.c b/cpukit/score/src/corespinlockwait.c
index 4fb49badd7..cf15163977 100644
--- a/cpukit/score/src/corespinlockwait.c
+++ b/cpukit/score/src/corespinlockwait.c
@@ -26,7 +26,7 @@
* _CORE_spinlock_Wait
*
* This function waits for the spinlock to become available. Optionally,
- * a limit may be placed on the duration of the spin.
+ * a limit may be placed on the duration of the spin.
*
* Input parameters:
* the_spinlock - the spinlock control block to initialize
@@ -48,7 +48,7 @@ CORE_spinlock_Status _CORE_spinlock_Wait(
#endif
_ISR_Disable( level );
- if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) &&
+ if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) &&
(the_spinlock->holder == _Thread_Executing->Object.id) ) {
_ISR_Enable( level );
return CORE_SPINLOCK_HOLDER_RELOCKING;
@@ -89,12 +89,12 @@ CORE_spinlock_Status _CORE_spinlock_Wait(
* POSIX does not say anything about ISRs, that implies that
* another thread must be able to run while spinning. We are
* not blocking so that implies we are at least preemptible
- * and possibly time-sliced.
- *
+ * and possibly time-sliced.
+ *
* So first, we will enable interrpts to allow for them to happen.
* Then we will "flash" the thread dispatching critical section
* so other threads have a chance to run.
- *
+ *
* A spinlock cannot be deleted while it is being used so we are
* safe from deletion.
*/
@@ -104,7 +104,7 @@ CORE_spinlock_Status _CORE_spinlock_Wait(
_Thread_Enable_dispatch();
/* Another thread could get dispatched here */
-
+
/* Reenter the critical sections so we can attempt the lock again. */
_Thread_Disable_dispatch();