summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/schedulersetaffinity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/schedulersetaffinity.c b/cpukit/score/src/schedulersetaffinity.c
index 00d1a8b207..1da339553e 100644
--- a/cpukit/score/src/schedulersetaffinity.c
+++ b/cpukit/score/src/schedulersetaffinity.c
@@ -41,7 +41,7 @@ bool _Scheduler_Set_affinity(
* _Thread_Initialize() which sets the default affinity to the set of online
* processors.
*/
- _Processor_mask_And( &affinity, &_SMP_Online_processors, &affinity );
+ _Processor_mask_And( &affinity, _SMP_Get_online_processors(), &affinity );
scheduler = _Thread_Scheduler_get_home( the_thread );
_Scheduler_Acquire_critical( scheduler, &lock_context );