forked from Imagelibrary/rtems
bsps: Simplify _CPU_SMP_Finalize_initialization()
The processor count is always positive.
This commit is contained in:
@@ -52,7 +52,6 @@ static rtems_interrupt_entry aarch64_ipi_entry;
|
|||||||
|
|
||||||
void _CPU_SMP_Finalize_initialization( uint32_t cpu_count )
|
void _CPU_SMP_Finalize_initialization( uint32_t cpu_count )
|
||||||
{
|
{
|
||||||
if ( cpu_count > 0 ) {
|
|
||||||
rtems_status_code sc;
|
rtems_status_code sc;
|
||||||
|
|
||||||
rtems_interrupt_entry_initialize(
|
rtems_interrupt_entry_initialize(
|
||||||
@@ -73,7 +72,6 @@ void _CPU_SMP_Finalize_initialization( uint32_t cpu_count )
|
|||||||
/* Enable unified L2 cache */
|
/* Enable unified L2 cache */
|
||||||
rtems_cache_enable_data();
|
rtems_cache_enable_data();
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _CPU_SMP_Prepare_start_multitasking( void )
|
void _CPU_SMP_Prepare_start_multitasking( void )
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ static rtems_interrupt_entry arm_a9mpcore_ipi_entry =
|
|||||||
|
|
||||||
void _CPU_SMP_Finalize_initialization(uint32_t cpu_count)
|
void _CPU_SMP_Finalize_initialization(uint32_t cpu_count)
|
||||||
{
|
{
|
||||||
if (cpu_count > 0) {
|
|
||||||
rtems_status_code sc;
|
rtems_status_code sc;
|
||||||
|
|
||||||
sc = rtems_interrupt_entry_install(
|
sc = rtems_interrupt_entry_install(
|
||||||
@@ -64,7 +63,6 @@ void _CPU_SMP_Finalize_initialization(uint32_t cpu_count)
|
|||||||
/* Enable unified L2 cache */
|
/* Enable unified L2 cache */
|
||||||
rtems_cache_enable_data();
|
rtems_cache_enable_data();
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _CPU_SMP_Prepare_start_multitasking( void )
|
void _CPU_SMP_Prepare_start_multitasking( void )
|
||||||
|
|||||||
@@ -118,7 +118,6 @@ uint32_t _CPU_SMP_Initialize(void)
|
|||||||
|
|
||||||
void _CPU_SMP_Finalize_initialization(uint32_t cpu_count)
|
void _CPU_SMP_Finalize_initialization(uint32_t cpu_count)
|
||||||
{
|
{
|
||||||
if (cpu_count > 0) {
|
|
||||||
rtems_status_code sc = rtems_interrupt_handler_install(
|
rtems_status_code sc = rtems_interrupt_handler_install(
|
||||||
BSP_VECTOR_IPI,
|
BSP_VECTOR_IPI,
|
||||||
"IPI",
|
"IPI",
|
||||||
@@ -127,7 +126,6 @@ void _CPU_SMP_Finalize_initialization(uint32_t cpu_count)
|
|||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
assert(sc == RTEMS_SUCCESSFUL);
|
assert(sc == RTEMS_SUCCESSFUL);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _CPU_SMP_Send_interrupt(uint32_t target_processor_index)
|
void _CPU_SMP_Send_interrupt(uint32_t target_processor_index)
|
||||||
|
|||||||
Reference in New Issue
Block a user