summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-09-08 09:41:12 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-09-09 06:57:10 +0200
commit270200e972e6c2a5733a12ee70fcc3b7e2940c6c (patch)
tree284b6a902cc2165c94b6bb78e45f7760d1ed712c /cpukit/score/src
parentlibcrypt: There is no need to clear message digest (diff)
downloadrtems-270200e972e6c2a5733a12ee70fcc3b7e2940c6c.tar.bz2
score: Remove _CPU_Counter_difference()
All CPU ports used the same _CPU_Counter_difference() implementation. Remove this CPU port interface and mandate a monotonically increasing CPU counter. Close #3456.
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/profilingisrentryexit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/score/src/profilingisrentryexit.c b/cpukit/score/src/profilingisrentryexit.c
index 2619bdc0c0..2c33182056 100644
--- a/cpukit/score/src/profilingisrentryexit.c
+++ b/cpukit/score/src/profilingisrentryexit.c
@@ -54,10 +54,7 @@ void _Profiling_Outer_most_interrupt_entry_and_exit(
_Assert( cpu->isr_nest_level == 1 );
stats = &cpu->Stats;
- delta = _CPU_Counter_difference(
- interrupt_exit_instant,
- interrupt_entry_instant
- );
+ delta = interrupt_exit_instant - interrupt_entry_instant;
++stats->interrupt_count;
stats->total_interrupt_time += delta;