Re: [PATCH] rtems: Fix rate monotonic statistics

2021-10-19 Thread Sebastian Huber
On 12/10/2021 08:44, Sebastian Huber wrote: On 12/10/2021 08:36, Sebastian Huber wrote: diff --git a/cpukit/libcsupport/src/__times.c b/cpukit/libcsupport/src/__times.c index 7bb7e0e9ca..a37c662654 100644 --- a/cpukit/libcsupport/src/__times.c +++ b/cpukit/libcsupport/src/__times.c @@ -65,7 +65

Re: [PATCH] rtems: Fix rate monotonic statistics

2021-10-11 Thread Sebastian Huber
On 12/10/2021 08:36, Sebastian Huber wrote: diff --git a/cpukit/libcsupport/src/__times.c b/cpukit/libcsupport/src/__times.c index 7bb7e0e9ca..a37c662654 100644 --- a/cpukit/libcsupport/src/__times.c +++ b/cpukit/libcsupport/src/__times.c @@ -65,7 +65,8 @@ clock_t _times( * of ticks since b

[PATCH] rtems: Fix rate monotonic statistics

2021-10-11 Thread Sebastian Huber
The rate monotonic period statistics were affected by rtems_cpu_usage_reset(). The logic to detect and work around a CPU usage reset was broken. The Thread_Contol::cpu_time_used is changed to contain the processor time used throughout the entire lifetime of the thread. The new member Thread_Cont