summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/shared/smp/smp-imps.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-12-23 08:28:24 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-09 14:03:32 +0100
commit2a4f9d7f187d22e8e3fc80acc20044ab80987e68 (patch)
tree6104bd2d3528d92ccd06787fa7ddca96afc1d37f /c/src/lib/libbsp/i386/shared/smp/smp-imps.c
parentcapture: Fix lock initialization (diff)
downloadrtems-2a4f9d7f187d22e8e3fc80acc20044ab80987e68.tar.bz2
smp: Add and use _SMP_Should_start_processor()
Diffstat (limited to 'c/src/lib/libbsp/i386/shared/smp/smp-imps.c')
-rw-r--r--c/src/lib/libbsp/i386/shared/smp/smp-imps.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/i386/shared/smp/smp-imps.c b/c/src/lib/libbsp/i386/shared/smp/smp-imps.c
index fdbf915881..158a45decd 100644
--- a/c/src/lib/libbsp/i386/shared/smp/smp-imps.c
+++ b/c/src/lib/libbsp/i386/shared/smp/smp-imps.c
@@ -57,7 +57,6 @@
#include <bsp/smp-imps.h>
#include <bsp/irq.h>
#include <rtems/score/smpimpl.h>
-#include <rtems/score/schedulerimpl.h>
/*
* XXXXX The following absolutely must be defined!!!
@@ -387,10 +386,7 @@ imps_read_config_table(unsigned start, int count)
switch (*((unsigned char *)start)) {
case IMPS_BCT_PROCESSOR:
if ( imps_num_cpus < rtems_configuration_get_maximum_processors() ) {
- const Scheduler_Assignment *assignment =
- _Scheduler_Get_assignment((uint32_t) imps_num_cpus);
-
- if (_Scheduler_Should_start_processor(assignment)) {
+ if (_SMP_Should_start_processor((uint32_t) imps_num_cpus)) {
add_processor((imps_processor *)start);
}
} else