Changeset 4b1d261 in rtems
- Timestamp:
- Jul 30, 2010, 6:53:06 PM (11 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 3bae3f2
- Parents:
- 9d47cd1
- Location:
- cpukit
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r9d47cd1 r4b1d261 1 2010-07-30 Gedare Bloom <giddyup44@yahoo.com> 2 3 PR 1599/cpukit 4 * posix/src/psignalunblockthread.c, posix/src/pthreadkill.c, 5 rtems/src/signalsend.c, score/include/rtems/score/percpu.h, 6 score/inline/rtems/score/thread.inl, score/src/thread.c, 7 score/src/threadchangepriority.c, score/src/threadclearstate.c, 8 score/src/threaddispatch.c, score/src/threadready.c, 9 score/src/threadresume.c, score/src/threadsetstate.c, 10 score/src/threadstartmultitasking.c, score/src/threadsuspend.c, 11 score/src/threadyieldprocessor.c: Rename _Context_Switch_necessary to 12 _Thread_Dispatch_necessary to more properly reflect the intent. 13 1 14 2010-07-30 Vinu Rajashekhar <vinutheraj@gmail.com> 2 15 -
cpukit/posix/src/psignalunblockthread.c
r9d47cd1 r4b1d261 114 114 } else if ( the_thread->current_state == STATES_READY ) { 115 115 if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 116 _ Context_Switch_necessary = true;116 _Thread_Dispatch_necessary = true; 117 117 } 118 118 } -
cpukit/posix/src/pthreadkill.c
r9d47cd1 r4b1d261 65 65 66 66 if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 67 _ Context_Switch_necessary = true;67 _Thread_Dispatch_necessary = true; 68 68 } 69 69 _Thread_Enable_dispatch(); -
cpukit/rtems/src/signalsend.c
r9d47cd1 r4b1d261 66 66 67 67 if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 68 _ Context_Switch_necessary = true;68 _Thread_Dispatch_necessary = true; 69 69 } else { 70 70 _ASR_Post_signals( signal_set, &asr->signals_pending ); -
cpukit/score/include/rtems/score/percpu.h
r9d47cd1 r4b1d261 86 86 87 87 /** This is set to true when this CPU needs to run the dispatcher. */ 88 volatile bool dispatch_ne eded;88 volatile bool dispatch_necessary; 89 89 90 90 } Per_CPU_Control; … … 161 161 #define _CPU_Interrupt_stack_low _Per_CPU_Information.interrupt_stack_low 162 162 #define _CPU_Interrupt_stack_high _Per_CPU_Information.interrupt_stack_high 163 #define _ Context_Switch_necessary _Per_CPU_Information.dispatch_needed163 #define _Thread_Dispatch_necessary _Per_CPU_Information.dispatch_necessary 164 164 165 165 #endif /* ASM */ -
cpukit/score/inline/rtems/score/thread.inl
r9d47cd1 r4b1d261 259 259 RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) 260 260 { 261 return ( _ Context_Switch_necessary );261 return ( _Thread_Dispatch_necessary ); 262 262 } 263 263 … … 352 352 if ( are_signals_pending || 353 353 (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) { 354 _ Context_Switch_necessary = true;354 _Thread_Dispatch_necessary = true; 355 355 return true; 356 356 } -
cpukit/score/src/thread.c
r9d47cd1 r4b1d261 70 70 ); 71 71 72 _ Context_Switch_necessary = false;72 _Thread_Dispatch_necessary = false; 73 73 _Thread_Executing = NULL; 74 74 _Thread_Heir = NULL; -
cpukit/score/src/threadchangepriority.c
r9d47cd1 r4b1d261 138 138 if ( !_Thread_Is_executing_also_the_heir() && 139 139 _Thread_Executing->is_preemptible ) 140 _ Context_Switch_necessary = true;140 _Thread_Dispatch_necessary = true; 141 141 _ISR_Enable( level ); 142 142 } -
cpukit/score/src/threadclearstate.c
r9d47cd1 r4b1d261 90 90 if ( _Thread_Executing->is_preemptible || 91 91 the_thread->current_priority == 0 ) 92 _ Context_Switch_necessary = true;92 _Thread_Dispatch_necessary = true; 93 93 } 94 94 } -
cpukit/score/src/threaddispatch.c
r9d47cd1 r4b1d261 90 90 executing = _Thread_Executing; 91 91 _ISR_Disable( level ); 92 while ( _ Context_Switch_necessary == true ) {92 while ( _Thread_Dispatch_necessary == true ) { 93 93 heir = _Thread_Heir; 94 94 _Thread_Dispatch_disable_level = 1; 95 _ Context_Switch_necessary = false;95 _Thread_Dispatch_necessary = false; 96 96 _Thread_Executing = heir; 97 97 -
cpukit/score/src/threadready.c
r9d47cd1 r4b1d261 73 73 74 74 if ( !_Thread_Is_executing( heir ) && _Thread_Executing->is_preemptible ) 75 _ Context_Switch_necessary = true;75 _Thread_Dispatch_necessary = true; 76 76 77 77 _ISR_Enable( level ); -
cpukit/score/src/threadresume.c
r9d47cd1 r4b1d261 80 80 if ( _Thread_Executing->is_preemptible || 81 81 the_thread->current_priority == 0 ) 82 _ Context_Switch_necessary = true;82 _Thread_Dispatch_necessary = true; 83 83 } 84 84 } -
cpukit/score/src/threadsetstate.c
r9d47cd1 r4b1d261 82 82 83 83 if ( _Thread_Is_executing( the_thread ) ) 84 _ Context_Switch_necessary = true;84 _Thread_Dispatch_necessary = true; 85 85 86 86 _ISR_Enable( level ); -
cpukit/score/src/threadstartmultitasking.c
r9d47cd1 r4b1d261 62 62 _System_state_Set( SYSTEM_STATE_UP ); 63 63 64 _ Context_Switch_necessary = false;64 _Thread_Dispatch_necessary = false; 65 65 66 66 _Thread_Executing = _Thread_Heir; -
cpukit/score/src/threadsuspend.c
r9d47cd1 r4b1d261 80 80 81 81 if ( _Thread_Is_executing( the_thread ) ) 82 _ Context_Switch_necessary = true;82 _Thread_Dispatch_necessary = true; 83 83 84 84 _ISR_Enable( level ); -
cpukit/score/src/threadyieldprocessor.c
r9d47cd1 r4b1d261 68 68 if ( _Thread_Is_heir( executing ) ) 69 69 _Thread_Heir = (Thread_Control *) ready->first; 70 _ Context_Switch_necessary = true;70 _Thread_Dispatch_necessary = true; 71 71 } 72 72 else if ( !_Thread_Is_heir( executing ) ) 73 _ Context_Switch_necessary = true;73 _Thread_Dispatch_necessary = true; 74 74 75 75 _ISR_Enable( level );
Note: See TracChangeset
for help on using the changeset viewer.