mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-26 12:27:11 +08:00
Revert "timecounter: No _Timecounter_Tick_simple() for SMP"
This reverts commit 46ae1d7a2b.
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.
This commit is contained in:
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user