diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-21 15:22:46 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-22 07:52:50 +0100 |
commit | 50a50313cc82271c6eb2d2a9031f648648a053a3 (patch) | |
tree | d63d05c280b537cfe00b854e162203c8eff31fdd | |
parent | Filesystem: Delete node type operation (diff) | |
download | rtems-50a50313cc82271c6eb2d2a9031f648648a053a3.tar.bz2 |
score: Delete superfluous Heap_Statistics::instance
This value depends on the _Heap_Initialize() call sequence and carries
no useful information.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libmisc/shell/print_heapinfo.c | 2 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/heap.h | 5 | ||||
-rw-r--r-- | cpukit/score/src/heap.c | 3 | ||||
-rw-r--r-- | doc/shell/memory.t | 2 |
4 files changed, 0 insertions, 12 deletions
diff --git a/cpukit/libmisc/shell/print_heapinfo.c b/cpukit/libmisc/shell/print_heapinfo.c index b1e34f2e29..f99f0a9aa3 100644 --- a/cpukit/libmisc/shell/print_heapinfo.c +++ b/cpukit/libmisc/shell/print_heapinfo.c @@ -38,7 +38,6 @@ void rtems_shell_print_heap_stats( ) { printf( - "Instance number: %12" PRIu32 "\n" "Size of the allocatable area in bytes: %12" PRIuPTR "\n" "Minimum free size ever in bytes: %12" PRIuPTR "\n" "Maximum number of free blocks ever: %12" PRIu32 "\n" @@ -50,7 +49,6 @@ void rtems_shell_print_heap_stats( "Total number of failed allocations: %12" PRIu32 "\n" "Total number of successful frees: %12" PRIu32 "\n" "Total number of successful resizes: %12" PRIu32 "\n", - s->instance, s->size, s->min_free_size, s->max_free_blocks, diff --git a/cpukit/score/include/rtems/score/heap.h b/cpukit/score/include/rtems/score/heap.h index f20b4e6651..ab627b62e8 100644 --- a/cpukit/score/include/rtems/score/heap.h +++ b/cpukit/score/include/rtems/score/heap.h @@ -271,11 +271,6 @@ typedef struct { uint64_t lifetime_freed; /** - * @brief Instance number of this heap. - */ - uint32_t instance; - - /** * @brief Size of the allocatable area in bytes. * * This value is an integral multiple of the page size. diff --git a/cpukit/score/src/heap.c b/cpukit/score/src/heap.c index 1550c4ce1c..3fddb1a04c 100644 --- a/cpukit/score/src/heap.c +++ b/cpukit/score/src/heap.c @@ -31,8 +31,6 @@ #error "invalid CPU_ALIGNMENT value" #endif -static uint32_t instance = 0; - /* * _Heap_Initialize * @@ -284,7 +282,6 @@ uintptr_t _Heap_Initialize( stats->min_free_size = first_block_size; stats->free_blocks = 1; stats->max_free_blocks = 1; - stats->instance = instance++; _Heap_Protection_set_delayed_free_fraction( heap, 2 ); diff --git a/doc/shell/memory.t b/doc/shell/memory.t index cda7ced486..5cd371a108 100644 --- a/doc/shell/memory.t +++ b/doc/shell/memory.t @@ -546,7 +546,6 @@ to the command. This includes the following information: @item Number of used blocks @item Largest used block @item Total bytes used -@item Instance number @item Size of the allocatable area in bytes @item Minimum free size ever in bytes @item Maximum number of free blocks ever @@ -584,7 +583,6 @@ Total bytes free: 266208392 Number of used blocks: 167 Largest used block: 16392 Total bytes used: 83536 -Instance number: 0 Size of the allocatable area in bytes: 266291928 Minimum free size ever in bytes: 266207360 Maximum number of free blocks ever: 6 |