PR 1939/cpukit
	* rtems/src/ratemonperiod.c: Fixed type mismatch.
This commit is contained in:
Sebastian Huber
2011-10-19 07:25:10 +00:00
parent 229bcca81d
commit 9e162be919
2 changed files with 8 additions and 4 deletions
+5
View File
@@ -1,3 +1,8 @@
2011-10-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1939/cpukit
* rtems/src/ratemonperiod.c: Fixed type mismatch.
2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/include/rtems/libio.h, libcsupport/src/termios.c:
+3 -4
View File
@@ -129,18 +129,17 @@ void _Rate_monotonic_Initiate_statistics(
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
if (owning_thread == _Thread_Executing) {
rtems_thread_cpu_usage_t ran;
Timestamp_Control ran;
/*
* Adjust the CPU time used to account for the time since last
* context switch.
*/
_Timespec_Subtract(
_Timestamp_Subtract(
&_Thread_Time_of_last_context_switch, &uptime, &ran
);
_Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran );
_Timestamp_Add_to( &the_period->cpu_usage_period_initiated, &ran );
}
#endif