diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-01-15 19:45:46 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-01-15 19:49:41 +0100 |
commit | 4e530464b00db308480ce9036b78bb125bb86477 (patch) | |
tree | 0f13ac8eda424d3ad582c466d1f6438cc5d79687 /bsps/shared/dev | |
parent | bsp/imx7: dl06 fails expectedly (diff) | |
download | rtems-4e530464b00db308480ce9036b78bb125bb86477.tar.bz2 |
bsps: Default to CPU counter benchmark timer
Most BSPs which used the stubbed benachmark timer provide a CPU counter.
All BSPs provide at least a stub CPU counter. Simply use the benchmark
timer implementation using the CPU counter.
Diffstat (limited to 'bsps/shared/dev')
-rw-r--r-- | bsps/shared/dev/btimer/btimer-stub.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/bsps/shared/dev/btimer/btimer-stub.c b/bsps/shared/dev/btimer/btimer-stub.c deleted file mode 100644 index d1e3313115..0000000000 --- a/bsps/shared/dev/btimer/btimer-stub.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file implements a stub benchmark timer that is sufficient to - * satisfy linking the RTEMS Benchmarks. - * - * COPYRIGHT (c) 1989-2001. - * On-Line Applications Research Corporation (OAR). - */ - -#include <bsp.h> -#include <rtems/btimer.h> - -bool benchmark_timer_find_average_overhead; - -void benchmark_timer_initialize(void) -{ -} - -benchmark_timer_t benchmark_timer_read(void) -{ - if (benchmark_timer_find_average_overhead) - return 1; - return 0; -} - -void benchmark_timer_disable_subtracting_average_overhead( - bool find_flag -) -{ - benchmark_timer_find_average_overhead = find_flag; -} |