score: Fix non-SMP build

This commit is contained in:
Sebastian Huber
2017-10-29 07:38:37 +01:00
parent af4355459e
commit 9db3cc21e9

View File

@@ -41,7 +41,7 @@ bool _Scheduler_Set_affinity(
* _Thread_Initialize() which sets the default affinity to the set of online * _Thread_Initialize() which sets the default affinity to the set of online
* processors. * 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 = _Thread_Scheduler_get_home( the_thread );
_Scheduler_Acquire_critical( scheduler, &lock_context ); _Scheduler_Acquire_critical( scheduler, &lock_context );