diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-17 08:54:58 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-21 07:39:09 +0200 |
commit | 59537c9648457e008362eb34f0398ac3d27d7d32 (patch) | |
tree | 993fece9e36790b46336fb3a4712ccc1be917c51 /cpukit/include/rtems/score/scheduler.h | |
parent | score: SCHEDULER_OPERATION_DEFAULT_ASK_FOR_HELP (diff) | |
download | rtems-59537c9648457e008362eb34f0398ac3d27d7d32.tar.bz2 |
score: SCHEDULER_OPERATION_DEFAULT_GET_SET_AFFINITY
Rename SCHEDULER_OPERATION_DEFAULT_GET_SET_AFFINITY in
SCHEDULER_DEFAULT_SET_AFFINITY_OPERATION. Add Doxygen comment.
Diffstat (limited to 'cpukit/include/rtems/score/scheduler.h')
-rw-r--r-- | cpukit/include/rtems/score/scheduler.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/cpukit/include/rtems/score/scheduler.h b/cpukit/include/rtems/score/scheduler.h index 25b6723efd..6cb07c4ff1 100644 --- a/cpukit/include/rtems/score/scheduler.h +++ b/cpukit/include/rtems/score/scheduler.h @@ -605,11 +605,23 @@ void _Scheduler_default_Start_idle( Scheduler_Node *node, const Processor_mask *affinity ); +#endif - #define SCHEDULER_OPERATION_DEFAULT_GET_SET_AFFINITY \ +/** + * @brief This define provides the default implementation for the + * SMP-specific set affinity operation. + * + * The default implementation _Scheduler_default_Set_affinity() is intended for + * uniprocessor schedulers and SMP schedulers which only support an affinity to + * all online processors. + * + * If SMP support is disabled, the define evaluates to nothing. + */ +#if defined(RTEMS_SMP) + #define SCHEDULER_DEFAULT_SET_AFFINITY_OPERATION \ , _Scheduler_default_Set_affinity #else - #define SCHEDULER_OPERATION_DEFAULT_GET_SET_AFFINITY + #define SCHEDULER_DEFAULT_SET_AFFINITY_OPERATION #endif /** |