From 16347a6b3910b04932225f1ea296a7adf206ec9e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 7 Jul 2017 07:36:52 +0200 Subject: score: Fix default set affinity The set of online processors must be a subset of the thread processor affinity for the schedulers without arbitrary processor affinity support to avoid problems in case of processor addition and removal. Update #3059. --- cpukit/score/include/rtems/score/schedulerimpl.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cpukit/score') diff --git a/cpukit/score/include/rtems/score/schedulerimpl.h b/cpukit/score/include/rtems/score/schedulerimpl.h index 6f220acf57..49aaf029e1 100644 --- a/cpukit/score/include/rtems/score/schedulerimpl.h +++ b/cpukit/score/include/rtems/score/schedulerimpl.h @@ -612,10 +612,9 @@ RTEMS_INLINE_ROUTINE bool _Scheduler_default_Set_affinity_body( const Processor_mask *affinity ) { - return _Processor_mask_Is_subset( - affinity, - _Scheduler_Get_processors( scheduler ) - ); + (void) scheduler; + (void) the_thread; + return _Processor_mask_Is_subset( affinity, _SMP_Get_online_processors() ); } bool _Scheduler_Set_affinity( -- cgit v1.2.3