diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-01 06:36:16 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-01 07:40:33 +0100 |
commit | d297c81dd9317b921ceed23e53872cb7fe4756f9 (patch) | |
tree | bb397762a8d73880a74ccc3dce3766d1c1dc4d7a /cpukit/rtems/src/ratemonperiod.c | |
parent | malloc: Fix function definition (diff) | |
download | rtems-d297c81dd9317b921ceed23e53872cb7fe4756f9.tar.bz2 |
score: Delete Thread_CPU_usage_t
This type is superfluous since all operations with it are done via the
_Timestamp_*() functions.
Diffstat (limited to 'cpukit/rtems/src/ratemonperiod.c')
-rw-r--r-- | cpukit/rtems/src/ratemonperiod.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |