Changeset 3eda7e5 in rtems
- Timestamp:
- 06/14/16 08:11:05 (7 years ago)
- Branches:
- 5, master
- Children:
- 042072b
- Parents:
- 0c34dbf3
- git-author:
- Sebastian Huber <sebastian.huber@…> (06/14/16 08:11:05)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (06/14/16 09:57:37)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/score/src/threadcreateidle.c
r0c34dbf3 r3eda7e5 26 26 #include <rtems/config.h> 27 27 28 static void _Thread_Create_idle_for_ cpu( Per_CPU_Control *cpu )28 static void _Thread_Create_idle_for_CPU( Per_CPU_Control *cpu ) 29 29 { 30 30 Objects_Name name; 31 31 Thread_Control *idle; 32 32 const Scheduler_Control *scheduler; 33 34 scheduler = _Scheduler_Get_by_CPU( cpu ); 35 36 #if defined(RTEMS_SMP) 37 if (scheduler == NULL) { 38 return; 39 } 40 #endif 33 41 34 42 name.name_u32 = _Objects_Build_name( 'I', 'D', 'L', 'E' ); … … 44 52 &_Thread_Internal_information, 45 53 idle, 46 _Scheduler_Get_by_CPU( cpu ),54 scheduler, 47 55 NULL, /* allocate the stack */ 48 56 _Stack_Ensure_minimum( rtems_configuration_get_idle_task_stack_size() ), 49 57 CPU_IDLE_TASK_IS_FP, 50 PRIORITY_MAXIMUM,58 scheduler->maximum_priority, 51 59 true, /* preemptable */ 52 60 THREAD_CPU_BUDGET_ALGORITHM_NONE, … … 68 76 _Thread_Load_environment( idle ); 69 77 70 scheduler = _Scheduler_Get_by_CPU( cpu );71 72 #if defined(RTEMS_SMP)73 if (scheduler == NULL) {74 return;75 }76 #endif77 78 78 idle->current_state = STATES_READY; 79 79 _Scheduler_Start_idle( scheduler, idle, cpu ); … … 92 92 93 93 if ( _Per_CPU_Is_processor_online( cpu ) ) { 94 _Thread_Create_idle_for_ cpu( cpu );94 _Thread_Create_idle_for_CPU( cpu ); 95 95 } 96 96 }
Note: See TracChangeset
for help on using the changeset viewer.