diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-13 20:54:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-13 20:54:01 +0000 |
commit | 8907a01c00bb48f40f9feb009dc85c51945eb5b2 (patch) | |
tree | 3b5d3cc760e942e3a3376192c68234fa8288b159 /cpukit/score/src/coresemseize.c | |
parent | 2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-8907a01c00bb48f40f9feb009dc85c51945eb5b2.tar.bz2 |
2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/coresem.h, score/src/coresemseize.c:
Disable body of _CORE_semaphore_Seize() if it is not used because all
APIs using it are disabled.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/coresemseize.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cpukit/score/src/coresemseize.c b/cpukit/score/src/coresemseize.c index aa1068e979..17f21a43c1 100644 --- a/cpukit/score/src/coresemseize.c +++ b/cpukit/score/src/coresemseize.c @@ -28,10 +28,8 @@ #include <rtems/score/thread.h> #include <rtems/score/threadq.h> -/*PAGE - * - * _CORE_semaphore_Seize - * +#if defined(RTEMS_SCORE_CORESEM_ENABLE_SEIZE_BODY) +/* * This routine attempts to allocate a core semaphore to the calling thread. * * Input parameters: @@ -87,3 +85,4 @@ void _CORE_semaphore_Seize( _ISR_Enable( level ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); } +#endif |