summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-11 09:56:18 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-11 09:56:18 +0200
commitf718e790e184f9d3391ac98022e613af9a1cba9b (patch)
tree39ff05c2b7fc18f1b5b9ea762ec16e4241ba7b3e
parenttimecounter: No _Timecounter_Tick_simple() for SMP (diff)
downloadrtems-f718e790e184f9d3391ac98022e613af9a1cba9b.tar.bz2
Revert "timecounter: No _Timecounter_Tick_simple() for SMP"
This reverts commit 46ae1d7a2b49b8f973dd6ba44fbbd38383798524. The _Timecounter_Tick_simple() function actually doesn't switch to the next timehand, so it is all right to use the simple timecounter approach even on SMP configurations. The use of simple timecounters is not recommended however since they impose a performance penalty.
-rw-r--r--cpukit/score/src/kern_tc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index 7499be6c9c..f6a1136d31 100644
--- a/cpukit/score/src/kern_tc.c
+++ b/cpukit/score/src/kern_tc.c
@@ -1962,11 +1962,6 @@ _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)
{
@@ -2006,7 +2001,6 @@ _Timecounter_Tick_simple(uint32_t delta, uint32_t offset)
_Watchdog_Tick();
}
-#endif /* RTEMS_SMP */
#endif /* __rtems__ */
#ifndef __rtems__