Changeset 0221da5f in rtems for cpukit/libmisc/cpuuse

Timestamp:
10/12/21 06:26:39 (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
28632b5
Parents:
9be97a3
git-author:
Sebastian Huber <sebastian.huber@…> (10/12/21 06:26:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/25/21 06:01:02)
Message:

rtems: Fix rate monotonic statistics

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_Contol::cpu_time_used_at_last_reset is added to contain the
processor time used at the time of the last reset through
rtems_cpu_usage_reset(). This decouples the resets of the CPU usage and
the rate monotonic period statistics.

Update #4528.

(No files)

Note: See TracChangeset for help on using the changeset viewer.