summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-09 21:31:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-09 21:31:27 +0200
commit46ae1d7a2b49b8f973dd6ba44fbbd38383798524 (patch)
treeb5808c902e8e4bbf6c11738fdf8546278c76fb64
parentcpukit/rtems: Fix doc for rtems_clock_get_ticks_per_second (diff)
downloadrtems-46ae1d7a2b49b8f973dd6ba44fbbd38383798524.tar.bz2
timecounter: No _Timecounter_Tick_simple() for SMP
-rw-r--r--cpukit/score/src/kern_tc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index f6a1136d31..7499be6c9c 100644
--- a/cpukit/score/src/kern_tc.c
+++ b/cpukit/score/src/kern_tc.c
@@ -1962,6 +1962,11 @@ _Timecounter_Tick(void)
#endif /* __rtems__ */
}
#ifdef __rtems__
+#ifndef RTEMS_SMP
+/*
+ * This function is a hack to support legacy clock drivers and hardware. It
+ * makes no sense on SMP configurations since here ten timehands are active.
+ */
void
_Timecounter_Tick_simple(uint32_t delta, uint32_t offset)
{
@@ -2001,6 +2006,7 @@ _Timecounter_Tick_simple(uint32_t delta, uint32_t offset)
_Watchdog_Tick();
}
+#endif /* RTEMS_SMP */
#endif /* __rtems__ */
#ifndef __rtems__