Changeset ecef3698 in rtems


Ignore:
Timestamp:
Oct 17, 2017, 2:19:03 PM (17 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
adaf5c23
Parents:
381ef5c
git-author:
Sebastian Huber <sebastian.huber@…> (10/17/17 14:19:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/24/17 07:37:27)
Message:

score: Rename _Watchdog_Ticks_from_*()

Rename _Watchdog_Ticks_from_*() to _Watchdog_Realtime_from_*().

This highlights that these routines are used for the CLOCK_REALTIME
watchdogs (in contrast to CLOCK_MONOTONIC).

Update #3117.
Update #3182.

Location:
cpukit
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/nanosleep.c

    r381ef5c recef3698  
    153153    return -1;
    154154  _Timespec_Add_to( &now, rqtp );
    155   ticks = _Watchdog_Ticks_from_timespec( &now );
     155  ticks = _Watchdog_Realtime_from_timespec( &now );
    156156  err = nanosleep_helper( CLOCK_REALTIME,
    157157      ticks,
     
    210210  _Timespec_Add_to( &timeout, rqtp );
    211211  if ( clock_id == CLOCK_REALTIME ) {
    212     ticks = _Watchdog_Ticks_from_timespec( &timeout );
     212    ticks = _Watchdog_Realtime_from_timespec( &timeout );
    213213    err = nanosleep_helper(
    214214        clock_id,
  • cpukit/rtems/src/taskwakewhen.c

    r381ef5c recef3698  
    5757      cpu_self,
    5858      _Thread_Timeout,
    59       _Watchdog_Ticks_from_seconds( seconds )
     59      _Watchdog_Realtime_from_seconds( seconds )
    6060    );
    6161  _Thread_Dispatch_enable( cpu_self );
  • cpukit/rtems/src/timercreate.c

    r381ef5c recef3698  
    8181        &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_REALTIME ],
    8282        &the_timer->Ticker,
    83         _Watchdog_Ticks_from_seconds( interval )
     83        _Watchdog_Realtime_from_seconds( interval )
    8484      );
    8585    }
  • cpukit/score/include/rtems/score/watchdogimpl.h

    r381ef5c recef3698  
    294294#define WATCHDOG_BITS_FOR_1E9_NANOSECONDS 30
    295295
    296 RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Ticks_from_seconds(
     296RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Realtime_from_seconds(
    297297  uint32_t seconds
    298298)
     
    305305}
    306306
    307 RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Ticks_from_timespec(
     307RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Realtime_from_timespec(
    308308  const struct timespec *ts
    309309)
     
    325325}
    326326
    327 RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Ticks_from_sbintime(
     327RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Realtime_from_sbintime(
    328328  sbintime_t sbt
    329329)
  • cpukit/score/src/coretodset.c

    r381ef5c recef3698  
    3838  _Timecounter_Set_clock( &tod_as_bintime, lock_context );
    3939
    40   tod_as_ticks = _Watchdog_Ticks_from_timespec( tod );
     40  tod_as_ticks = _Watchdog_Realtime_from_timespec( tod );
    4141  cpu_count = _SMP_Get_processor_count();
    4242
  • cpukit/score/src/watchdogtick.c

    r381ef5c recef3698  
    8686  _Watchdog_Per_CPU_tickle_realtime(
    8787    cpu,
    88     _Watchdog_Ticks_from_timespec( &now )
     88    _Watchdog_Realtime_from_timespec( &now )
    8989  );
    9090
Note: See TracChangeset for help on using the changeset viewer.