diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-09-08 09:41:12 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-09-09 06:57:10 +0200 |
commit | 270200e972e6c2a5733a12ee70fcc3b7e2940c6c (patch) | |
tree | 284b6a902cc2165c94b6bb78e45f7760d1ed712c /cpukit/include/rtems/score/profiling.h | |
parent | libcrypt: There is no need to clear message digest (diff) | |
download | rtems-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/include/rtems/score/profiling.h')
-rw-r--r-- | cpukit/include/rtems/score/profiling.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/include/rtems/score/profiling.h b/cpukit/include/rtems/score/profiling.h index 90e470a775..90d441b0d0 100644 --- a/cpukit/include/rtems/score/profiling.h +++ b/cpukit/include/rtems/score/profiling.h @@ -129,10 +129,7 @@ static inline void _Profiling_Thread_dispatch_enable( if ( new_thread_dispatch_disable_level == 0 ) { Per_CPU_Stats *stats = &cpu->Stats; CPU_Counter_ticks now = _CPU_Counter_read(); - CPU_Counter_ticks delta = _CPU_Counter_difference( - now, - stats->thread_dispatch_disabled_instant - ); + CPU_Counter_ticks delta = now - stats->thread_dispatch_disabled_instant; stats->total_thread_dispatch_disabled_time += delta; |