summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spfatal15
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-04-26 14:28:52 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-05-04 10:53:51 +0200
commit5a4bb758c0017374352ccf065fb1aac4ebb3e27d (patch)
tree5b69f58aac905d40a70923eaab5b0fa43cfa57bb /testsuites/sptests/spfatal15
parentRemove CVS-Ids. (diff)
downloadrtems-5a4bb758c0017374352ccf065fb1aac4ebb3e27d.tar.bz2
Filesystem: Remove per file descriptor semaphore
The per file descriptor semaphore (field of rtems_libio_t) is unused in RTEMS. There is a considerable memory overhead due to that. A semaphore needs roughly 124 bytes which is huge compared to the approximately 72 bytes for the file descriptor structure itself. Device drivers can create their own synchronization primitives in the open handler on demand.
Diffstat (limited to 'testsuites/sptests/spfatal15')
-rw-r--r--testsuites/sptests/spfatal15/Makefile.am1
-rw-r--r--testsuites/sptests/spfatal15/testcase.h3
2 files changed, 1 insertions, 3 deletions
diff --git a/testsuites/sptests/spfatal15/Makefile.am b/testsuites/sptests/spfatal15/Makefile.am
index ffeb24a418..485c92af6b 100644
--- a/testsuites/sptests/spfatal15/Makefile.am
+++ b/testsuites/sptests/spfatal15/Makefile.am
@@ -11,7 +11,6 @@ include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
-AM_CPPFLAGS += -DSEMAPHORES_REMAINING=6
LINK_OBJS = $(spfatal15_OBJECTS)
LINK_LIBS = $(spfatal15_LDLIBS)
diff --git a/testsuites/sptests/spfatal15/testcase.h b/testsuites/sptests/spfatal15/testcase.h
index 66ca243917..7570e4e5c8 100644
--- a/testsuites/sptests/spfatal15/testcase.h
+++ b/testsuites/sptests/spfatal15/testcase.h
@@ -16,8 +16,7 @@
#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE
#define FATAL_ERROR_EXPECTED_ERROR 0x55544432
-#define CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS \
- { consume_semaphores_initialize, NULL, NULL, NULL, NULL, NULL }
+#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 2
void force_error()
{