diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-07 07:45:57 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-07 07:55:03 +0200 |
commit | 76d119857f62ceff860439ae8bbf3fa29757dc87 (patch) | |
tree | 0b2efcae7e04f9cae4d4c15ceba76355892012b2 /c/src/lib/libbsp/shared | |
parent | score: Use processor mask for set affinity (diff) | |
download | rtems-76d119857f62ceff860439ae8bbf3fa29757dc87.tar.bz2 |
score: Introduce _SMP_Get_online_processors()
Update #3059.
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r-- | c/src/lib/libbsp/shared/clockdrv_shell.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/shared/clockdrv_shell.h b/c/src/lib/libbsp/shared/clockdrv_shell.h index bf741339ae..a4d1b2df91 100644 --- a/c/src/lib/libbsp/shared/clockdrv_shell.h +++ b/c/src/lib/libbsp/shared/clockdrv_shell.h @@ -80,7 +80,7 @@ static void Clock_driver_timecounter_tick( void ) if ( _Per_CPU_Is_boot_processor( cpu ) ) { rtems_timecounter_tick(); - } else if ( _Processor_mask_Is_set( &_SMP_Online_processors, cpu_index ) ) { + } else if ( _Processor_mask_Is_set( _SMP_Get_online_processors(), cpu_index ) ) { _Watchdog_Tick( cpu ); } } @@ -227,7 +227,9 @@ rtems_device_driver Clock_initialize( Clock_driver_support_install_isr( Clock_isr, Old_ticker ); #ifdef RTEMS_SMP - Clock_driver_support_set_interrupt_affinity( &_SMP_Online_processors ); + Clock_driver_support_set_interrupt_affinity( + _SMP_Get_online_processors() + ); #endif /* |