source: rtems/bsps/powerpc/qoriq/btimer/btimer.c @ 8f8ccee

5
Last change on this file since 8f8ccee was e0dd8a5a, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 10:08:42

bsps: Move benchmark timer to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 840 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup QorIQ
5 *
6 * @brief QorIQ benchmark timer.
7 */
8
9/*
10 * Copyright (c) 2011 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.org/license/LICENSE.
21 */
22
23#include <rtems/btimer.h>
24
25#include <libcpu/powerpc-utility.h>
26
27static benchmark_timer_t benchmark_timer_base;
28
29void benchmark_timer_initialize(void)
30{
31  benchmark_timer_base = ppc_alternate_time_base();
32}
33
34benchmark_timer_t benchmark_timer_read(void)
35{
36  return ppc_alternate_time_base() - benchmark_timer_base;
37}
38
39void benchmark_timer_disable_subtracting_average_overhead(bool find_average_overhead)
40{
41  /* VOID */
42}
Note: See TracBrowser for help on using the repository browser.