[rtems commit] Revert "timecounter: No _Timecounter_Tick_simple() for SMP"
Sebastian Huber
sebh at rtems.org
Thu Jun 11 11:22:45 UTC 2015
Module: rtems
Branch: master
Commit: f718e790e184f9d3391ac98022e613af9a1cba9b
Changeset: http://git.rtems.org/rtems/commit/?id=f718e790e184f9d3391ac98022e613af9a1cba9b
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Jun 11 09:56:18 2015 +0200
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.
---
cpukit/score/src/kern_tc.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index 7499be6..f6a1136 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__
More information about the vc
mailing list