Changeset 63f786e in rtems


Ignore:
Timestamp:
Apr 5, 2007, 10:13:08 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
a4819530
Parents:
afc0a39
Message:

2007-04-05 Joel Sherrill <joel@…>

  • itron/src/itrontime.c: Fix typo.
  • score/include/rtems/score/tod.h: Add TOD_TICKS_PER_SECOND macro.
  • score/src/iterateoverthreads.c: Safely take NULL as argument.
  • score/src/threaddispatch.c: Formatting.
Location:
cpukit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rafc0a39 r63f786e  
     12007-04-05      Joel Sherrill <joel@OARcorp.com>
     2
     3        * itron/src/itrontime.c: Fix typo.
     4        * score/include/rtems/score/tod.h: Add TOD_TICKS_PER_SECOND macro.
     5        * score/src/iterateoverthreads.c: Safely take NULL as argument.
     6        * score/src/threaddispatch.c: Formatting.
     7
    182007-04-05      Joel Sherrill <joel@OARcorp.com>
    29
  • cpukit/itron/src/itrontime.c

    rafc0a39 r63f786e  
    3838  if(temp > 0) {
    3939    _Thread_Disable_dispatch();
    40       _TOD_Set(&the_tod);
     40      _TOD_Set(&time);
    4141    _Thread_Enable_dispatch();
    4242    return E_OK;
  • cpukit/score/include/rtems/score/tod.h

    rafc0a39 r63f786e  
    3232
    3333#include <rtems/score/object.h>
    34 #include <rtems/score/watchdog.h>
    3534#include <time.h>
    3635
     
    109108/**@}*/
    110109
     110/**  @brief Ticks per Second
     111 * 
     112 *  This macro calculates the number of ticks per second.
     113 */
     114
     115#define TOD_TICKS_PER_SECOND \
     116           (TOD_MICROSECONDS_PER_SECOND / _TOD_Microseconds_per_tick)
     117
    111118/** @brief RTEMS Epoch Year
    112119 *
  • cpukit/score/src/iterateoverthreads.c

    rafc0a39 r63f786e  
    3030  Objects_Information *information;
    3131
     32  if ( !routine )
     33    return;
     34
    3235  for ( api_index = 1 ;
    3336        api_index <= OBJECTS_APIS_LAST ;
  • cpukit/score/src/threaddispatch.c

    rafc0a39 r63f786e  
    115115#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
    116116#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
    117     if ( (executing->fp_context != NULL) && !_Thread_Is_allocated_fp( executing ) ) {
     117    if ( (executing->fp_context != NULL) &&
     118         !_Thread_Is_allocated_fp( executing ) ) {
    118119      if ( _Thread_Allocated_fp != NULL )
    119120        _Context_Save_fp( &_Thread_Allocated_fp->fp_context );
Note: See TracChangeset for help on using the changeset viewer.