diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-01 11:48:59 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-03 11:13:26 +0200 |
commit | 494c2e300215c4bc539d243d6a5d060e0e2f2ef2 (patch) | |
tree | 8ba7c54667cad8331430bf719b4a1bd94ed3ac8b /cpukit/sapi | |
parent | score: Rename Priority_bit_map_Control (diff) | |
download | rtems-494c2e300215c4bc539d243d6a5d060e0e2f2ef2.tar.bz2 |
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.
Diffstat (limited to 'cpukit/sapi')
-rw-r--r-- | cpukit/sapi/include/confdefs.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index d8cf2af402..53ea2f1bf6 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -676,7 +676,8 @@ const rtems_libio_helper rtems_fs_init_helper = */ #define CONFIGURE_MEMORY_FOR_SCHEDULER ( \ _Configure_From_workspace( \ - ((CONFIGURE_MAXIMUM_PRIORITY+1) * sizeof(Chain_Control)) ) \ + sizeof(Scheduler_priority_Control) + \ + ((CONFIGURE_MAXIMUM_PRIORITY) * sizeof(Chain_Control)) ) \ ) #define CONFIGURE_MEMORY_PER_TASK_FOR_SCHEDULER ( \ _Configure_From_workspace(sizeof(Scheduler_priority_Per_thread)) ) @@ -695,7 +696,7 @@ const rtems_libio_helper rtems_fs_init_helper = */ #define CONFIGURE_MEMORY_FOR_SCHEDULER ( \ _Configure_From_workspace( \ - sizeof(Scheduler_SMP_Control) + \ + sizeof(Scheduler_priority_SMP_Control) + \ ((CONFIGURE_MAXIMUM_PRIORITY) * sizeof(Chain_Control)) ) \ ) #define CONFIGURE_MEMORY_PER_TASK_FOR_SCHEDULER ( \ @@ -731,7 +732,7 @@ const rtems_libio_helper rtems_fs_init_helper = * NOTE: This is the same as the Simple Scheduler */ #define CONFIGURE_MEMORY_FOR_SCHEDULER ( \ - _Configure_From_workspace( sizeof( Scheduler_SMP_Control ) ) \ + _Configure_From_workspace( sizeof( Scheduler_simple_SMP_Control ) ) \ ) #define CONFIGURE_MEMORY_PER_TASK_FOR_SCHEDULER (0) #endif |