<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-12-16)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-12-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libmisc/cpuuse/cpuusagereport.c: We have to take the time since the
last context switch before the uptime.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2664&r2=text&tr2=1.2665&diff_format=h">M</a></td><td width='1%'>1.2665</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libmisc/cpuuse/cpuusagereport.c.diff?r1=text&tr1=1.17&r2=text&tr2=1.18&diff_format=h">M</a></td><td width='1%'>1.18</td><td width='100%'>cpukit/libmisc/cpuuse/cpuusagereport.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2664 rtems/cpukit/ChangeLog:1.2665
--- rtems/cpukit/ChangeLog:1.2664 Thu Dec 16 08:50:11 2010
+++ rtems/cpukit/ChangeLog Thu Dec 16 09:46:34 2010
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2010-12-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
<font color='#000088'>+ * libmisc/cpuuse/cpuusagereport.c: We have to take the time since the
+ last context switch before the uptime.
+
+2010-12-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
</font> * score/src/watchdognanoseconds.c: New file.
* score/Makefile.am: Reflect change above.
* score/include/rtems/score/watchdog.h, score/src/coretodget.c,
<font color='#006600'>diff -u rtems/cpukit/libmisc/cpuuse/cpuusagereport.c:1.17 rtems/cpukit/libmisc/cpuuse/cpuusagereport.c:1.18
--- rtems/cpukit/libmisc/cpuuse/cpuusagereport.c:1.17 Tue Nov 23 09:26:52 2010
+++ rtems/cpukit/libmisc/cpuuse/cpuusagereport.c Thu Dec 16 09:46:34 2010
</font><font color='#997700'>@@ -53,7 +53,7 @@
</font> char name[13];
uint32_t ival, fval;
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
<font color='#880000'>- Timestamp_Control uptime, total, ran;
</font><font color='#000088'>+ Timestamp_Control uptime, total, ran, last_context_switch;
</font> #else
uint32_t total_units = 0;
#endif
<font color='#997700'>@@ -67,6 +67,7 @@
</font> * guideline as to what each number means proportionally.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
<font color='#000088'>+ last_context_switch = _Thread_Time_of_last_context_switch;
</font> _TOD_Get_uptime( &uptime );
_Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );
#else
<font color='#997700'>@@ -132,9 +133,7 @@
</font> ran = the_thread->cpu_time_used;
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
Timestamp_Control used;
<font color='#880000'>- _Timestamp_Subtract(
- &_Thread_Time_of_last_context_switch, &uptime, &used
- );
</font><font color='#000088'>+ _Timestamp_Subtract( &last_context_switch, &uptime, &used );
</font> _Timestamp_Add_to( &ran, &used );
};
_Timestamp_Divide( &ran, &total, &ival, &fval );
</pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>