From 46ae1d7a2b49b8f973dd6ba44fbbd38383798524 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 9 Jun 2015 21:31:27 +0200 Subject: 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 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__ -- cgit v1.2.3