[rtems commit] timecounter: No _Timecounter_Tick_simple() for SMP
Sebastian Huber
sebh at rtems.org
Tue Jun 9 19:32:52 UTC 2015
Module: rtems
Branch: master
Commit: 46ae1d7a2b49b8f973dd6ba44fbbd38383798524
Changeset: http://git.rtems.org/rtems/commit/?id=46ae1d7a2b49b8f973dd6ba44fbbd38383798524
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jun 9 21:31:27 2015 +0200
timecounter: No _Timecounter_Tick_simple() for SMP
---
cpukit/score/src/kern_tc.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index f6a1136..7499be6 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__
More information about the vc
mailing list