[rtems commit] sapi: Delete unused macros

Sebastian Huber sebh at rtems.org
Wed Nov 7 14:07:17 UTC 2012


Module:    rtems
Branch:    master
Commit:    e39fa07cecb00850f4f5a1ff5a53ca06edd6f50b
Changeset: http://git.rtems.org/rtems/commit/?id=e39fa07cecb00850f4f5a1ff5a53ca06edd6f50b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Nov  6 12:13:29 2012 +0100

sapi: Delete unused macros

Delete rtems_configuration_get_table(),
rtems_configuration_set_stack_space_size(),
rtems_configuration_set_work_space_size(), and
rtems_configuration_set_microseconds_per_tick().

---

 cpukit/sapi/include/rtems/config.h |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h
index 494effc..6426121 100644
--- a/cpukit/sapi/include/rtems/config.h
+++ b/cpukit/sapi/include/rtems/config.h
@@ -247,9 +247,6 @@ extern rtems_configuration_table  Configuration;
  *  or the exact format of the configuration table.
  */
 
-#define rtems_configuration_get_table() \
-        (&Configuration)
-
 #define rtems_configuration_get_unified_work_area() \
         (Configuration.unified_work_area)
 
@@ -259,17 +256,11 @@ extern rtems_configuration_table  Configuration;
 #define rtems_configuration_get_stack_space_size() \
         (Configuration.stack_space_size)
 
-#define rtems_configuration_set_stack_space_size( _size ) \
-        do { Configuration.stack_space_size = (_size); } while (0)
-
 #define rtems_configuration_get_work_space_size() \
         (Configuration.work_space_size + \
           (rtems_configuration_get_stack_allocator_avoids_work_space() ? \
             0 : rtems_configuration_get_stack_space_size()))
 
-#define rtems_configuration_set_work_space_size( _size ) \
-        do { Configuration.work_space_size = (_size); } while (0)
-
 #define rtems_configuration_get_maximum_extensions() \
         (Configuration.maximum_extensions)
 
@@ -279,12 +270,6 @@ extern rtems_configuration_table  Configuration;
         (Configuration.microseconds_per_tick / 1000)
 #define rtems_configuration_get_nanoseconds_per_tick() \
         (Configuration.nanoseconds_per_tick)
-#define rtems_configuration_set_microseconds_per_tick( _us ) \
-        do { \
-          Configuration.microseconds_per_tick = (_us); \
-          Configuration.nanoseconds_per_tick = \
-            1000 * Configuration.microseconds_per_tick; \
-        } while (0)
 
 #define rtems_configuration_get_ticks_per_timeslice() \
         (Configuration.ticks_per_timeslice)




More information about the vc mailing list