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.
This commit is contained in:
Sebastian Huber
2020-02-15 11:14:32 +01:00
parent 1ada3e55f6
commit 51614bd5bf

View File

@@ -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
) {