diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-15 11:14:32 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-25 07:18:35 +0100 |
commit | 51614bd5bf3e7ad197a4a605948c0370e9b595ec (patch) | |
tree | 4d09edcf0e700e80a7c5a15d345f65cd294f779d /bsps | |
parent | 1ada3e55f695f77452bd4eb6ebb5d7a4054e1edf (diff) |
bsps/clock: Use _SMP_Get_processor_maximum()
Use a specific test to enable the fast idle mode instead of using the
rtems_configuration_is_smp_enabled() workaround.
Update #3876.
Diffstat (limited to 'bsps')
-rw-r--r-- | bsps/shared/dev/clock/clockimpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/shared/dev/clock/clockimpl.h b/bsps/shared/dev/clock/clockimpl.h index 163b498a18..3c08c80859 100644 --- a/bsps/shared/dev/clock/clockimpl.h +++ b/bsps/shared/dev/clock/clockimpl.h @@ -150,7 +150,7 @@ rtems_isr Clock_isr( Clock_driver_timecounter_tick(); - if (!rtems_configuration_is_smp_enabled()) { + if (_SMP_Get_processor_maximum() == 1) { while ( _Thread_Heir == _Thread_Executing && _Thread_Executing->is_idle ) { |