From 494c2e300215c4bc539d243d6a5d060e0e2f2ef2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 1 Apr 2014 11:48:59 +0200 Subject: score: Move priority bit map to scheduler instance Delete global variables _Priority_Major_bit_map and _Priority_Bit_map. This makes it possible to use multiple priority scheduler instances for example with clustered/partitioned scheduling on SMP. --- testsuites/sptests/spsize/size.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'testsuites/sptests/spsize/size.c') diff --git a/testsuites/sptests/spsize/size.c b/testsuites/sptests/spsize/size.c index 3dff3d3a86..f24bc9b3e1 100644 --- a/testsuites/sptests/spsize/size.c +++ b/testsuites/sptests/spsize/size.c @@ -85,9 +85,7 @@ void print_formula(void); #include /* Priority scheduling uninitialized (globals) consumption */ -#define SCHEDULER_OVHD ((sizeof _Scheduler) + \ - (sizeof _Priority_Major_bit_map) + \ - (sizeof _Priority_Bit_map)) +#define SCHEDULER_OVHD (sizeof _Scheduler) /* Priority scheduling per-thread consumption. Gets * included in the PER_TASK consumption. @@ -100,7 +98,8 @@ void print_formula(void); * including _Scheduler in SCHEDULER_OVHD. */ #define SCHEDULER_WKSP_SIZE \ - ((RTEMS_MAXIMUM_PRIORITY + 1) * sizeof(Chain_Control )) + (sizeof(Scheduler_priority_Control) + \ + RTEMS_MAXIMUM_PRIORITY * sizeof(Chain_Control )) /****** END OF MEMORY USAGE OF DEFAULT PRIORITY SCHEDULER ******/ #define PER_TASK \ -- cgit v1.2.3