change log for rtems (2011-05-26)
sebastian.huber at embedded-brains.de
Wed Sep 26 14:23:15 UTC 2012
On 09/26/2012 03:51 PM, Joel Sherrill wrote:
> On 09/26/2012 08:48 AM, Sebastian Huber wrote:
>> On 09/26/2012 03:40 PM, Joel Sherrill wrote:
>>> On 09/26/2012 07:00 AM, Sebastian Huber wrote:
>>>> What has this change to do with SMP inter-process communications? Why do we
>>>> update _Thread_Time_of_last_context_switch in case
>>>> __RTEMS_USE_TICKS_FOR_STATISTICS__ is defined?
>>> At least I can explain this part of the change. There were technically
>>> two changes in that commit. They got merged into one and the comment
>>> doesn't reflect that.
>>> If you don't set the _Thread_Time_of_last_context_switch, then the
>>> statistics for rate monotonic periods are not completely right. You
>>> need to account for how long the current task has been running.
>> Ok, but then the rate-monotonic statistics do not honor the
>> __RTEMS_USE_TICKS_FOR_STATISTICS__. I currently don't have time to look at
>> this more detailed, but I think something is mixed up here.
> Where do they not honor that? I see it used in a number of
> rate monotonic files:
I think the purpose of the __RTEMS_USE_TICKS_FOR_STATISTICS__ is that we use
only ticks for the statistics.
The threaddispatch.c doesn't compile with __RTEMS_USE_TICKS_FOR_STATISTICS__
/home/sh/git-rtems/c/src/../../cpukit/score/src/threaddispatch.c: In function
warning: implicit declaration of function 'TOD_Get_uptime'
warning: nested extern declaration of 'TOD_Get_uptime' [-Wnested-externs]
'_Thread_Time_of_last_context_switch' undeclared (first use in this function)
each undeclared identifier is reported only once for each function it appears in
Sebastian Huber, embedded brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel