From 50a50313cc82271c6eb2d2a9031f648648a053a3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 21 Jan 2015 15:22:46 +0100 Subject: score: Delete superfluous Heap_Statistics::instance This value depends on the _Heap_Initialize() call sequence and carries no useful information. --- cpukit/libmisc/shell/print_heapinfo.c | 2 -- cpukit/score/include/rtems/score/heap.h | 5 ----- cpukit/score/src/heap.c | 3 --- 3 files changed, 10 deletions(-) (limited to 'cpukit') 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 @@ -270,11 +270,6 @@ typedef struct { */ uint64_t lifetime_freed; - /** - * @brief Instance number of this heap. - */ - uint32_t instance; - /** * @brief Size of the allocatable area in bytes. * 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 ); -- cgit v1.2.3