forked from Imagelibrary/rtems
rtems: Change timer server task mode setting
Use the non-preempt mode only in uni-processor configurations. Update #3876.
This commit is contained in:
@@ -181,9 +181,11 @@ static rtems_status_code _Timer_server_Initiate(
|
|||||||
rtems_build_name('T','I','M','E'),
|
rtems_build_name('T','I','M','E'),
|
||||||
priority,
|
priority,
|
||||||
stack_size,
|
stack_size,
|
||||||
rtems_configuration_is_smp_enabled() ?
|
#ifdef RTEMS_SMP
|
||||||
RTEMS_DEFAULT_MODES : /* no preempt is not supported for SMP */
|
RTEMS_DEFAULT_MODES, /* no preempt is not recommended for SMP */
|
||||||
|
#else
|
||||||
RTEMS_NO_PREEMPT, /* no preempt is like an interrupt */
|
RTEMS_NO_PREEMPT, /* no preempt is like an interrupt */
|
||||||
|
#endif
|
||||||
/* user may want floating point but we need */
|
/* user may want floating point but we need */
|
||||||
/* system task specified for 0 priority */
|
/* system task specified for 0 priority */
|
||||||
attribute_set | RTEMS_SYSTEM_TASK,
|
attribute_set | RTEMS_SYSTEM_TASK,
|
||||||
|
|||||||
Reference in New Issue
Block a user