From 5a4bb758c0017374352ccf065fb1aac4ebb3e27d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 26 Apr 2012 14:28:52 +0200 Subject: 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. --- testsuites/sptests/spfatal19/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuites/sptests/spfatal19/Makefile.am') diff --git a/testsuites/sptests/spfatal19/Makefile.am b/testsuites/sptests/spfatal19/Makefile.am index 8f4105c0e7..8471aae478 100644 --- a/testsuites/sptests/spfatal19/Makefile.am +++ b/testsuites/sptests/spfatal19/Makefile.am @@ -11,7 +11,7 @@ include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am AM_CPPFLAGS += -I$(top_srcdir)/../support/include -AM_CPPFLAGS += -DSEMAPHORES_REMAINING=2 +AM_CPPFLAGS += -DSEMAPHORES_REMAINING=1 LINK_OBJS = $(spfatal19_OBJECTS) LINK_LIBS = $(spfatal19_LDLIBS) -- cgit v1.2.3