From 8b73ee50238d5f22db792bf8cc573a001f52065f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 3 Mar 2020 13:45:50 +0100 Subject: rtems: rtems_scheduler_get_processor_maximum() In uniprocessor configurations, use compile-time constants for rtems_scheduler_get_processor_maximum() and rtems_scheduler_get_processor(). This helps compilers and static analyzers to deduce that some loop bodies are only executed once and some conditional statements have a fixed outcome (may improve code generation and reduce false positives). In SMP configurations, directly provide the internal implementation for performance reasons. --- cpukit/Makefile.am | 2 -- 1 file changed, 2 deletions(-) (limited to 'cpukit/Makefile.am') diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am index 298580e20d..783a9bbf42 100644 --- a/cpukit/Makefile.am +++ b/cpukit/Makefile.am @@ -700,8 +700,6 @@ librtemscpu_a_SOURCES += rtems/src/eventseize.c librtemscpu_a_SOURCES += rtems/src/eventsend.c librtemscpu_a_SOURCES += rtems/src/eventsurrender.c librtemscpu_a_SOURCES += rtems/src/getapiconfig.c -librtemscpu_a_SOURCES += rtems/src/getcurrentprocessor.c -librtemscpu_a_SOURCES += rtems/src/getprocessorcount.c librtemscpu_a_SOURCES += rtems/src/intrbody.c librtemscpu_a_SOURCES += rtems/src/intrcatch.c librtemscpu_a_SOURCES += rtems/src/modes.c -- cgit v1.2.3