Changeset 7ed377b in rtems


Ignore:
Timestamp:
Oct 20, 2017, 6:43:15 AM (17 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
cea5ff7
Parents:
d16d07f
git-author:
Sebastian Huber <sebastian.huber@…> (10/20/17 06:43:15)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/24/17 07:37:28)
Message:

score: _Watchdog_Is_far_future_monotonic_timespec

Update #3117.
Update #3182.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/confdefs.h

    rd16d07f r7ed377b  
    31113111  const uint32_t _Watchdog_Ticks_per_second = _CONFIGURE_TICKS_PER_SECOND;
    31123112
     3113  const uint64_t _Watchdog_Monotonic_max_seconds =
     3114    UINT64_MAX / _CONFIGURE_TICKS_PER_SECOND;
     3115
    31133116  /**
    31143117   * This is the Classic API Configuration Table.
  • cpukit/score/include/rtems/score/watchdog.h

    rd16d07f r7ed377b  
    167167extern const uint32_t _Watchdog_Ticks_per_second;
    168168
     169/**
     170 * @brief The maximum number of seconds representable in the monotonic watchdog
     171 * format.
     172 *
     173 * This constant is defined by the application configuration via
     174 * <rtems/confdefs.h>.
     175 */
     176extern const uint64_t _Watchdog_Monotonic_max_seconds;
     177
    169178/**@}*/
    170179
  • cpukit/score/include/rtems/score/watchdogimpl.h

    rd16d07f r7ed377b  
    320320}
    321321
     322RTEMS_INLINE_ROUTINE bool _Watchdog_Is_far_future_monotonic_timespec(
     323  const struct timespec *ts
     324)
     325{
     326  return ts->tv_sec >= _Watchdog_Monotonic_max_seconds;
     327}
     328
    322329RTEMS_INLINE_ROUTINE bool _Watchdog_Is_far_future_realtime_timespec(
    323330  const struct timespec *ts
  • testsuites/sptests/spwatchdog/init.c

    rd16d07f r7ed377b  
    6161{
    6262  rtems_test_assert( _Watchdog_Ticks_per_second == 100 );
     63  rtems_test_assert( _Watchdog_Monotonic_max_seconds == 184467440737095516 );
    6364}
    6465
Note: See TracChangeset for help on using the changeset viewer.