Changeset ccc92b8 in rtems
- Timestamp:
- 11/21/16 09:26:32 (6 years ago)
- Branches:
- 5, master
- Children:
- f730c25b
- Parents:
- 27eccda
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/score/include/rtems/score/percpu.h
r27eccda rccc92b8 321 321 322 322 /** 323 * @brief This is set to true when this processor needs to run the thread 324 * dispatcher. 325 * 326 * It is volatile since interrupts may alter this flag. 327 * 328 * This field is not protected by a lock and must be accessed only by this 329 * processor. Code (e.g. scheduler and post-switch action requests) running 330 * on another processors must use an inter-processor interrupt to set the 331 * thread dispatch necessary indicator to true. 332 * 333 * @see _Thread_Get_heir_and_make_it_executing(). 334 */ 335 volatile bool dispatch_necessary; 336 337 /** 323 338 * @brief This is the thread executing on this processor. 324 339 * … … 347 362 */ 348 363 struct _Thread_Control *heir; 349 350 /**351 * @brief This is set to true when this processor needs to run the thread352 * dispatcher.353 *354 * It is volatile since interrupts may alter this flag.355 *356 * This field is not protected by a lock and must be accessed only by this357 * processor. Code (e.g. scheduler and post-switch action requests) running358 * on another processors must use an inter-processor interrupt to set the359 * thread dispatch necessary indicator to true.360 *361 * @see _Thread_Get_heir_and_make_it_executing().362 */363 volatile bool dispatch_necessary;364 364 365 365 #if defined(RTEMS_SMP) … … 813 813 #define PER_CPU_THREAD_DISPATCH_DISABLE_LEVEL \ 814 814 PER_CPU_ISR_DISPATCH_DISABLE + 4 815 #define PER_CPU_DISPATCH_NEEDED \ 816 PER_CPU_THREAD_DISPATCH_DISABLE_LEVEL + 4 815 817 #define PER_CPU_OFFSET_EXECUTING \ 816 PER_CPU_ THREAD_DISPATCH_DISABLE_LEVEL+ 4818 PER_CPU_DISPATCH_NEEDED + 4 817 819 #define PER_CPU_OFFSET_HEIR \ 818 820 PER_CPU_OFFSET_EXECUTING + CPU_SIZEOF_POINTER 819 #define PER_CPU_DISPATCH_NEEDED \820 PER_CPU_OFFSET_HEIR + CPU_SIZEOF_POINTER821 821 #if defined(RTEMS_SMP) 822 822 #define PER_CPU_INTERRUPT_FRAME_AREA \ 823 PER_CPU_ DISPATCH_NEEDED + 4823 PER_CPU_OFFSET_HEIR + CPU_SIZEOF_POINTER 824 824 #endif 825 825
Note: See TracChangeset
for help on using the changeset viewer.