[rtems commit] score: Fix non-SMP build
Sebastian Huber
sebh at rtems.org
Sun Oct 29 06:38:59 UTC 2017
Module: rtems
Branch: master
Commit: 9db3cc21e9c444f4660f14a74e1598d7bc214906
Changeset: http://git.rtems.org/rtems/commit/?id=9db3cc21e9c444f4660f14a74e1598d7bc214906
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sun Oct 29 07:38:37 2017 +0100
score: Fix non-SMP build
---
cpukit/score/src/schedulersetaffinity.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/score/src/schedulersetaffinity.c b/cpukit/score/src/schedulersetaffinity.c
index 00d1a8b..1da3395 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 );
More information about the vc
mailing list