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 /testsuites/tmtests/tm27/task1.c | |
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 'testsuites/tmtests/tm27/task1.c')
-rw-r--r-- | testsuites/tmtests/tm27/task1.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/testsuites/tmtests/tm27/task1.c b/testsuites/tmtests/tm27/task1.c index 0062a7302f..d7ebfbe224 100644 --- a/testsuites/tmtests/tm27/task1.c +++ b/testsuites/tmtests/tm27/task1.c @@ -20,6 +20,7 @@ #define CONFIGURE_INIT #include "system.h" +#include <rtems/score/schedulerpriorityimpl.h> #include <bsp.h> #define _RTEMS_TMTEST27 @@ -101,10 +102,10 @@ rtems_task Task_1( rtems_task_argument argument ) { + Scheduler_priority_Control *scheduler = _Scheduler_priority_Instance(); #if defined(RTEMS_SMP) rtems_interrupt_level level; #endif - Chain_Control *ready_queues; Install_tm27_vector( Isr_handler ); @@ -185,9 +186,8 @@ rtems_task Task_1( _ISR_Disable_without_giant(level); #endif - ready_queues = (Chain_Control *) _Scheduler.information; _Thread_Executing = - (Thread_Control *) _Chain_First(&ready_queues[LOW_PRIORITY]); + (Thread_Control *) _Chain_First(&scheduler->Ready[LOW_PRIORITY]); _Thread_Dispatch_necessary = 1; @@ -219,10 +219,10 @@ rtems_task Task_2( rtems_task_argument argument ) { + Scheduler_priority_Control *scheduler = _Scheduler_priority_Instance(); #if defined(RTEMS_SMP) rtems_interrupt_level level; #endif - Chain_Control *ready_queues; #if (MUST_WAIT_FOR_INTERRUPT == 1) while ( Interrupt_occurred == 0 ); @@ -255,9 +255,8 @@ rtems_task Task_2( rtems_interrupt_disable(level); #endif - ready_queues = (Chain_Control *) _Scheduler.information; _Thread_Executing = - (Thread_Control *) _Chain_First(&ready_queues[LOW_PRIORITY]); + (Thread_Control *) _Chain_First(&scheduler->Ready[LOW_PRIORITY]); _Thread_Dispatch_necessary = 1; |