summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems')
-rw-r--r--cpukit/rtems/include/rtems/rtems/ratemon.h8
-rw-r--r--cpukit/rtems/include/rtems/rtems/ratemonimpl.h2
-rw-r--r--cpukit/rtems/src/ratemongetstatus.c2
-rw-r--r--cpukit/rtems/src/ratemonperiod.c8
4 files changed, 10 insertions, 10 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/ratemon.h b/cpukit/rtems/include/rtems/rtems/ratemon.h
index 5af170defa..267502e940 100644
--- a/cpukit/rtems/include/rtems/rtems/ratemon.h
+++ b/cpukit/rtems/include/rtems/rtems/ratemon.h
@@ -156,11 +156,11 @@ typedef struct {
uint32_t missed_count;
/** This field contains the least amount of CPU time used in a period. */
- Thread_CPU_usage_t min_cpu_time;
+ Timestamp_Control min_cpu_time;
/** This field contains the highest amount of CPU time used in a period. */
- Thread_CPU_usage_t max_cpu_time;
+ Timestamp_Control max_cpu_time;
/** This field contains the total amount of wall time used in a period. */
- Thread_CPU_usage_t total_cpu_time;
+ Timestamp_Control total_cpu_time;
/** This field contains the least amount of wall time used in a period. */
Rate_monotonic_Period_time_t min_wall_time;
@@ -226,7 +226,7 @@ typedef struct {
* the period was initiated. It is used to compute the period's
* statistics.
*/
- Thread_CPU_usage_t cpu_usage_period_initiated;
+ Timestamp_Control cpu_usage_period_initiated;
/**
* This field contains the wall time value when the period
diff --git a/cpukit/rtems/include/rtems/rtems/ratemonimpl.h b/cpukit/rtems/include/rtems/rtems/ratemonimpl.h
index 90724a4254..490912eb21 100644
--- a/cpukit/rtems/include/rtems/rtems/ratemonimpl.h
+++ b/cpukit/rtems/include/rtems/rtems/ratemonimpl.h
@@ -161,7 +161,7 @@ void _Rate_monotonic_Timeout(
bool _Rate_monotonic_Get_status(
Rate_monotonic_Control *the_period,
Rate_monotonic_Period_time_t *wall_since_last_period,
- Thread_CPU_usage_t *cpu_since_last_period
+ Timestamp_Control *cpu_since_last_period
);
/**
diff --git a/cpukit/rtems/src/ratemongetstatus.c b/cpukit/rtems/src/ratemongetstatus.c
index b61e234137..b70abefd74 100644
--- a/cpukit/rtems/src/ratemongetstatus.c
+++ b/cpukit/rtems/src/ratemongetstatus.c
@@ -31,7 +31,7 @@ rtems_status_code rtems_rate_monotonic_get_status(
rtems_rate_monotonic_period_status *status
)
{
- Thread_CPU_usage_t executed;
+ Timestamp_Control executed;
Objects_Locations location;
Rate_monotonic_Period_time_t since_last_period;
Rate_monotonic_Control *the_period;
diff --git a/cpukit/rtems/src/ratemonperiod.c b/cpukit/rtems/src/ratemonperiod.c
index 144164e79a..6afe1016bf 100644
--- a/cpukit/rtems/src/ratemonperiod.c
+++ b/cpukit/rtems/src/ratemonperiod.c
@@ -27,12 +27,12 @@
bool _Rate_monotonic_Get_status(
Rate_monotonic_Control *the_period,
Rate_monotonic_Period_time_t *wall_since_last_period,
- Thread_CPU_usage_t *cpu_since_last_period
+ Timestamp_Control *cpu_since_last_period
)
{
Timestamp_Control uptime;
Thread_Control *owning_thread = the_period->owner;
- Thread_CPU_usage_t used;
+ Timestamp_Control used;
/*
* Determine elapsed wall time since period initiated.
@@ -49,7 +49,7 @@ bool _Rate_monotonic_Get_status(
if (owning_thread == _Thread_Executing) {
- Thread_CPU_usage_t ran;
+ Timestamp_Control ran;
/* How much time time since last context switch */
_Timestamp_Subtract(
@@ -120,7 +120,7 @@ static void _Rate_monotonic_Update_statistics(
Rate_monotonic_Control *the_period
)
{
- Thread_CPU_usage_t executed;
+ Timestamp_Control executed;
Rate_monotonic_Period_time_t since_last_period;
Rate_monotonic_Statistics *stats;
bool valid_status;