Changeset 3380ee8 in rtems for cpukit/score/src/threadcreateidle.c
- Timestamp:
- 04/22/14 05:46:53 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- e10574a
- Parents:
- f17e171
- git-author:
- Sebastian Huber <sebastian.huber@…> (04/22/14 05:46:53)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (04/22/14 06:34:45)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/score/src/threadcreateidle.c
rf17e171 r3380ee8 24 24 #include <rtems/config.h> 25 25 26 static void _Thread_Create_idle_for_cpu( Per_CPU_Control * per_cpu )26 static void _Thread_Create_idle_for_cpu( Per_CPU_Control *cpu ) 27 27 { 28 28 Objects_Name name; … … 41 41 &_Thread_Internal_information, 42 42 idle, 43 _Scheduler_Get_by_CPU( per_cpu ),43 _Scheduler_Get_by_CPU( cpu ), 44 44 NULL, /* allocate the stack */ 45 45 _Stack_Ensure_minimum( rtems_configuration_get_idle_task_stack_size() ), … … 57 57 * MUST be done before _Thread_Start is invoked. 58 58 */ 59 per_cpu->heir =60 per_cpu->executing = idle;59 cpu->heir = 60 cpu->executing = idle; 61 61 62 62 _Thread_Start( … … 66 66 NULL, 67 67 0, 68 per_cpu68 cpu 69 69 ); 70 70 } … … 72 72 void _Thread_Create_idle( void ) 73 73 { 74 uint32_t processor_count = _SMP_Get_processor_count();75 uint32_t processor;74 uint32_t cpu_count = _SMP_Get_processor_count(); 75 uint32_t cpu_index; 76 76 77 for ( processor = 0 ; processor < processor_count ; ++processor) {78 Per_CPU_Control * per_cpu = _Per_CPU_Get_by_index( processor);77 for ( cpu_index = 0 ; cpu_index < cpu_count ; ++cpu_index ) { 78 Per_CPU_Control *cpu = _Per_CPU_Get_by_index( cpu_index ); 79 79 80 if ( _Per_CPU_Is_processor_started( per_cpu ) ) {81 _Thread_Create_idle_for_cpu( per_cpu );80 if ( _Per_CPU_Is_processor_started( cpu ) ) { 81 _Thread_Create_idle_for_cpu( cpu ); 82 82 } 83 83 }
Note: See TracChangeset
for help on using the changeset viewer.