diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-05-03 13:03:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-12-07 14:22:01 +0100 |
commit | 0a1f5df98e52b028bf8b4de3bf63e39702fa5f34 (patch) | |
tree | 7b3d8bfe7a9e760ee2bbb8916d3284f34edfec89 /bsps/shared/dev | |
parent | score: Avoid sbintime_t in API headers (diff) | |
download | rtems-0a1f5df98e52b028bf8b4de3bf63e39702fa5f34.tar.bz2 |
Simplify _CPU_Counter_difference()
In order to simplify the use of CPU counter values it is beneficial to
have monotonic increasing values within the range of the CPU counter
ticks data type, e.g. 32-bit unsigned integer. This eases the use of
CPU counter timestamps in external tools which do not know the details
of the CPU counter hardware. The CPU counter is the fastest way to get
a time on an RTEMS system.
Such a CPU counter may be also used as the timecounter. Use it on SPARC
for this purpose to simplify the clock drivers.
Update #3456.
Diffstat (limited to 'bsps/shared/dev')
-rw-r--r-- | bsps/shared/dev/cpucounter/cpucounterdiff.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/bsps/shared/dev/cpucounter/cpucounterdiff.c b/bsps/shared/dev/cpucounter/cpucounterdiff.c deleted file mode 100644 index d77945d5b8..0000000000 --- a/bsps/shared/dev/cpucounter/cpucounterdiff.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2014 embedded brains GmbH. All rights reserved. - * - * embedded brains GmbH - * Dornierstr. 4 - * 82178 Puchheim - * Germany - * <rtems@embedded-brains.de> - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#include <rtems/score/cpu.h> - -CPU_Counter_ticks _CPU_Counter_difference( - CPU_Counter_ticks second, - CPU_Counter_ticks first -) -{ - return second - first; -} |