[rtems commit] bsps/clock: Use _SMP_Get_processor_maximum()

Sebastian Huber sebh at rtems.org
Tue Feb 25 11:32:19 UTC 2020


Module:    rtems
Branch:    master
Commit:    51614bd5bf3e7ad197a4a605948c0370e9b595ec
Changeset: http://git.rtems.org/rtems/commit/?id=51614bd5bf3e7ad197a4a605948c0370e9b595ec

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sat Feb 15 11:14:32 2020 +0100

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.

---

 bsps/shared/dev/clock/clockimpl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsps/shared/dev/clock/clockimpl.h b/bsps/shared/dev/clock/clockimpl.h
index 163b498..3c08c80 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
         ) {



More information about the vc mailing list