Changeset 2369b10 in rtems
- Timestamp:
- 05/14/14 14:04:10 (10 years ago)
- Branches:
- 4.11, 5, master
- Children:
- f39f667a
- Parents:
- 0f41cc3
- git-author:
- Sebastian Huber <sebastian.huber@…> (05/14/14 14:04:10)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (05/14/14 15:01:22)
- Location:
- cpukit/score
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/score/include/rtems/score/scheduleredfimpl.h
r0f41cc3 r2369b10 35 35 _Scheduler_EDF_Get_context( const Scheduler_Control *scheduler ) 36 36 { 37 return (Scheduler_EDF_Context *) scheduler->context;37 return (Scheduler_EDF_Context *) _Scheduler_Get_context( scheduler ); 38 38 } 39 39 -
cpukit/score/include/rtems/score/schedulerimpl.h
r0f41cc3 r2369b10 579 579 } 580 580 581 RTEMS_INLINE_ROUTINE Scheduler_Context *_Scheduler_Get_context( 582 const Scheduler_Control *scheduler 583 ) 584 { 585 return scheduler->context; 586 } 587 581 588 RTEMS_INLINE_ROUTINE uint32_t _Scheduler_Get_processor_count( 582 589 const Scheduler_Control *scheduler … … 584 591 { 585 592 #if defined(RTEMS_SMP) 586 return scheduler->context->processor_count;593 return _Scheduler_Get_context( scheduler )->processor_count; 587 594 #else 588 595 (void) scheduler; -
cpukit/score/include/rtems/score/schedulerpriorityimpl.h
r0f41cc3 r2369b10 39 39 _Scheduler_priority_Get_context( const Scheduler_Control *scheduler ) 40 40 { 41 return (Scheduler_priority_Context *) scheduler->context;41 return (Scheduler_priority_Context *) _Scheduler_Get_context( scheduler ); 42 42 } 43 43 -
cpukit/score/include/rtems/score/schedulersimpleimpl.h
r0f41cc3 r2369b10 36 36 _Scheduler_simple_Get_context( const Scheduler_Control *scheduler ) 37 37 { 38 return (Scheduler_simple_Context *) scheduler->context;38 return (Scheduler_simple_Context *) _Scheduler_Get_context( scheduler ); 39 39 } 40 40 -
cpukit/score/src/schedulerprioritysmp.c
r0f41cc3 r2369b10 33 33 _Scheduler_priority_SMP_Get_context( const Scheduler_Control *scheduler ) 34 34 { 35 return (Scheduler_priority_SMP_Context *) scheduler->context;35 return (Scheduler_priority_SMP_Context *) _Scheduler_Get_context( scheduler ); 36 36 } 37 37 -
cpukit/score/src/schedulersimplesmp.c
r0f41cc3 r2369b10 26 26 _Scheduler_simple_SMP_Get_context( const Scheduler_Control *scheduler ) 27 27 { 28 return (Scheduler_simple_SMP_Context *) scheduler->context;28 return (Scheduler_simple_SMP_Context *) _Scheduler_Get_context( scheduler ); 29 29 } 30 30 -
cpukit/score/src/smp.c
r0f41cc3 r2369b10 59 59 60 60 if ( started ) { 61 Scheduler_Context *scheduler_context = assignment->scheduler->context; 61 Scheduler_Context *context = 62 _Scheduler_Get_context( assignment->scheduler ); 62 63 63 ++ scheduler_context->processor_count;64 cpu->scheduler_context = scheduler_context;64 ++context->processor_count; 65 cpu->scheduler_context = context; 65 66 } 66 67 }
Note: See TracChangeset
for help on using the changeset viewer.