change log for rtems (2011-05-26)

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Sep 26 12:00:58 UTC 2012


On 05/26/2011 08:11 PM, rtems-vc at rtems.org wrote:
> 2011-05-26	Jennifer Averett <Jennifer.Averett at OARcorp.com>
>
> 	PR 1796/cpukit
> 	* sapi/src/exshutdown.c, score/include/rtems/score/percpu.h,
> 	score/include/rtems/score/smp.h, score/src/smp.c,
> 	score/src/threaddispatch.c, score/src/threadhandler.c: Added SMP
> 	interprocess communications.
[...]
> diff -u rtems/cpukit/score/src/threaddispatch.c:1.24 rtems/cpukit/score/src/threaddispatch.c:1.25
> --- rtems/cpukit/score/src/threaddispatch.c:1.24	Thu Apr 21 14:05:15 2011
> +++ rtems/cpukit/score/src/threaddispatch.c	Thu May 26 13:07:07 2011
[...]
> @@ -96,7 +110,10 @@
>           _Thread_Time_of_last_context_switch = uptime;
>         }
>       #else
> -      heir->cpu_time_used++;
> +      {
> +        TOD_Get_uptime( &_Thread_Time_of_last_context_switch );
> +        heir->cpu_time_used++;
> +      }
>       #endif
>
>       /*

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?

-- 
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 mailing list