diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-04-26 14:28:52 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-04 10:53:51 +0200 |
commit | 5a4bb758c0017374352ccf065fb1aac4ebb3e27d (patch) | |
tree | 5b69f58aac905d40a70923eaab5b0fa43cfa57bb /cpukit/sapi/include/confdefs.h | |
parent | Remove CVS-Ids. (diff) | |
download | rtems-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 '')
-rw-r--r-- | cpukit/sapi/include/confdefs.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index d896c59e82..3e4cb90940 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -119,11 +119,9 @@ rtems_fs_init_functions_t rtems_fs_init_helper = #endif /** - * From the number of file descriptors, we can determine how many - * semaphores the implementation will require. + * Semaphore count used by the IO library. */ -#define CONFIGURE_LIBIO_SEMAPHORES \ - (CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS + 1) +#define CONFIGURE_LIBIO_SEMAPHORES 1 #ifdef CONFIGURE_INIT /** |