diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 8caedf3051..4903f2a6ce 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2011-10-18 Sebastian Huber + + PR 1939/cpukit + * rtems/src/ratemonperiod.c: Fixed type mismatch. + 2011-10-18 Ralf Corsépius * libcsupport/include/rtems/libio.h, libcsupport/src/termios.c: diff --git a/cpukit/rtems/src/ratemonperiod.c b/cpukit/rtems/src/ratemonperiod.c index 4af3f90b5b..28a83d72a1 100644 --- a/cpukit/rtems/src/ratemonperiod.c +++ b/cpukit/rtems/src/ratemonperiod.c @@ -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