kernel: Eliminate unused memory pool structure field
Eliminates the memory pool field indicating the size of the
pool's memory buffer, since it isn't used anywhere.
(Anyway, it could be computed by multiplying the maximum
block size by the number of maximum-sized blocks.)
Change-Id: Ia11554bdc2b246a1ba0ea33f05c5e6ce6a32ca13
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
diff --git a/kernel/microkernel/include/micro_private_types.h b/kernel/microkernel/include/micro_private_types.h
index e7f5145..8be328c 100644
--- a/kernel/microkernel/include/micro_private_types.h
+++ b/kernel/microkernel/include/micro_private_types.h
@@ -392,7 +392,6 @@
struct pool_struct {
int maxblock_size;
int minblock_size;
- int total_mem;
int nr_of_maxblocks;
int nr_of_frags;
diff --git a/scripts/sysgen b/scripts/sysgen
index bd52c49..5c9f0a3 100755
--- a/scripts/sysgen
+++ b/scripts/sysgen
@@ -705,8 +705,8 @@
# append memory pool descriptor info
- pool_descriptors += " {%d, %d, %d, %d, %d, NULL, %s, %s},\n" % \
- (max_block_size, min_block_size_actual, total_memory,
+ pool_descriptors += " {%d, %d, %d, %d, NULL, %s, %s},\n" % \
+ (max_block_size, min_block_size_actual,
num_maximal_blocks, frag_levels, frag_table, buffer)
ident += 1