rtems: SMP fix for timer server

This commit is contained in:
Sebastian Huber
2014-08-27 14:06:10 +02:00
parent 614a0889b6
commit 34db8ec932

View File

@@ -513,6 +513,8 @@ rtems_status_code rtems_timer_initiate_server(
_Objects_Build_name('T','I','M','E'), /* "TIME" */ _Objects_Build_name('T','I','M','E'), /* "TIME" */
_priority, /* create with priority 1 since 0 is illegal */ _priority, /* create with priority 1 since 0 is illegal */
stack_size, /* let user specify stack size */ stack_size, /* let user specify stack size */
rtems_configuration_is_smp_enabled() ?
RTEMS_DEFAULT_MODES : /* no preempt is not supported for SMP */
RTEMS_NO_PREEMPT, /* no preempt is like an interrupt */ RTEMS_NO_PREEMPT, /* no preempt is like an interrupt */
/* 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 */