summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-08-27 14:06:10 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-08-27 14:06:10 +0200
commit34db8ec9322f8c9ae6d416c94f6d66fd236184cb (patch)
tree535288b3f18a3f5de58c2eb95ca35f2121db1338
parent614a0889b664a9309c3a966e5f0f494d4b94b62f (diff)
downloadrtems-34db8ec9322f8c9ae6d416c94f6d66fd236184cb.tar.bz2
rtems: SMP fix for timer server
-rw-r--r--cpukit/rtems/src/timerserver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/rtems/src/timerserver.c b/cpukit/rtems/src/timerserver.c
index 7523ebcdf4..ad321728f0 100644
--- a/cpukit/rtems/src/timerserver.c
+++ b/cpukit/rtems/src/timerserver.c
@@ -513,7 +513,9 @@ rtems_status_code rtems_timer_initiate_server(
_Objects_Build_name('T','I','M','E'), /* "TIME" */
_priority, /* create with priority 1 since 0 is illegal */
stack_size, /* let user specify stack size */
- RTEMS_NO_PREEMPT, /* no preempt is like an interrupt */
+ rtems_configuration_is_smp_enabled() ?
+ RTEMS_DEFAULT_MODES : /* no preempt is not supported for SMP */
+ RTEMS_NO_PREEMPT, /* no preempt is like an interrupt */
/* user may want floating point but we need */
/* system task specified for 0 priority */
attribute_set | RTEMS_SYSTEM_TASK,