diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-03-06 08:37:21 -0600 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-04-03 10:46:24 -0500 |
commit | cfe457f9a61525b02c88503d7af76887b0976643 (patch) | |
tree | af14aada35aff9b9d49c6d323a8fd6ebba13a1e6 /cpukit/score/include/rtems/score/schedulerpriority.h | |
parent | samples/fileio: Fix configuration (diff) | |
download | rtems-cfe457f9a61525b02c88503d7af76887b0976643.tar.bz2 |
score: score: Add get/set affinity to Scheduler Framework.
Diffstat (limited to 'cpukit/score/include/rtems/score/schedulerpriority.h')
-rw-r--r-- | cpukit/score/include/rtems/score/schedulerpriority.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/schedulerpriority.h b/cpukit/score/include/rtems/score/schedulerpriority.h index 40e784badf..0bc455293c 100644 --- a/cpukit/score/include/rtems/score/schedulerpriority.h +++ b/cpukit/score/include/rtems/score/schedulerpriority.h @@ -34,6 +34,14 @@ extern "C" { */ /**@{*/ +#if defined(__RTEMS_HAVE_SYS_CPUSET_H__) && defined(RTEMS_SMP) + #define SCHEDULER_PRIORITY_ADDITIONAL_SMP_ENTRY_POINTS \ + _Scheduler_default_Get_affinity, /* get affinity entry point */ \ + _Scheduler_default_Set_affinity /* set affinity entry point */ +#else + #define SCHEDULER_PRIORITY_ADDITIONAL_SMP_ENTRY_POINTS +#endif + /** * Entry points for the Deterministic Priority Based Scheduler. */ @@ -53,7 +61,8 @@ extern "C" { _Scheduler_priority_Priority_compare, /* compares two priorities */ \ _Scheduler_default_Release_job, /* new period of task */ \ _Scheduler_default_Tick, /* tick entry point */ \ - _Scheduler_default_Start_idle /* start idle entry point */ \ + _Scheduler_default_Start_idle, /* start idle entry point */ \ + SCHEDULER_PRIORITY_ADDITIONAL_SMP_ENTRY_POINTS \ } typedef struct { |