4.115
Last change
on this file since 133d54c5 was
0712d17,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/08/14 at 09:14:27
|
score: Task get/set affinity
Make rtems_task_get_affinity() and rtems_task_set_affinity() available
on non-SMP configurations. Allow larger CPU sets.
|
-
Property mode set to
100644
|
File size:
733 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Scheduler Default Set Affinity Operation |
---|
5 | * |
---|
6 | * @ingroup ScoreScheduler |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 2014. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.org/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #if HAVE_CONFIG_H |
---|
19 | #include "config.h" |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <rtems/score/schedulerimpl.h> |
---|
23 | |
---|
24 | bool _Scheduler_default_Set_affinity( |
---|
25 | const Scheduler_Control *scheduler, |
---|
26 | Thread_Control *thread, |
---|
27 | size_t cpusetsize, |
---|
28 | const cpu_set_t *cpuset |
---|
29 | ) |
---|
30 | { |
---|
31 | return _Scheduler_default_Set_affinity_body( |
---|
32 | scheduler, |
---|
33 | thread, |
---|
34 | cpusetsize, |
---|
35 | cpuset |
---|
36 | ); |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.