forked from Imagelibrary/rtems
bsp/leon3: Use printk() only if debug is enabled
This commit is contained in:
@@ -68,9 +68,9 @@ uint32_t bsp_smp_initialize( uint32_t configured_cpu_count )
|
|||||||
sparc_leon3_set_cctrl( 0x80000F );
|
sparc_leon3_set_cctrl( 0x80000F );
|
||||||
found_cpus =
|
found_cpus =
|
||||||
((LEON3_IrqCtrl_Regs->mpstat >> LEON3_IRQMPSTATUS_CPUNR) & 0xf) + 1;
|
((LEON3_IrqCtrl_Regs->mpstat >> LEON3_IRQMPSTATUS_CPUNR) & 0xf) + 1;
|
||||||
|
|
||||||
#if defined(RTEMS_DEBUG)
|
#if defined(RTEMS_DEBUG)
|
||||||
printk( "Found %d CPUs\n", found_cpus );
|
printk( "Found %d CPUs\n", found_cpus );
|
||||||
#endif
|
|
||||||
|
|
||||||
if ( found_cpus > configured_cpu_count ) {
|
if ( found_cpus > configured_cpu_count ) {
|
||||||
printk(
|
printk(
|
||||||
@@ -80,6 +80,7 @@ uint32_t bsp_smp_initialize( uint32_t configured_cpu_count )
|
|||||||
);
|
);
|
||||||
found_cpus = configured_cpu_count;
|
found_cpus = configured_cpu_count;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( found_cpus == 1 )
|
if ( found_cpus == 1 )
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user