forked from Imagelibrary/rtems
smp: Add and use _SMP_Should_start_processor()
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include <bsp/bootcard.h>
|
||||
#include <rtems/bspIo.h>
|
||||
#include <rtems/score/smpimpl.h>
|
||||
#include <rtems/score/schedulerimpl.h>
|
||||
|
||||
void bsp_fatal_extension(
|
||||
rtems_fatal_source source,
|
||||
@@ -55,10 +54,7 @@ void bsp_fatal_extension(
|
||||
uint32_t i;
|
||||
|
||||
for (i = 0; i < cpu_count; ++i) {
|
||||
const Scheduler_Assignment *assignment = _Scheduler_Get_assignment( i );
|
||||
|
||||
if ( (i != self_cpu) &&
|
||||
_Scheduler_Should_start_processor( assignment ) ) {
|
||||
if ( (i != self_cpu) && _SMP_Should_start_processor( i ) ) {
|
||||
halt_mask |= UINT32_C(1) << i;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user