Changeset 5747962 in rtems


Ignore:
Timestamp:
Oct 20, 2017, 5:29:22 AM (17 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
6de1f92
Parents:
b13ec80
git-author:
Sebastian Huber <sebastian.huber@…> (10/20/17 05:29:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/24/17 07:37:28)
Message:

score: _Watchdog_Per_CPU_lazy_insert_monotonic()

Update #3117.
Update #3182.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/watchdogimpl.h

    rb13ec80 r5747962  
    426426}
    427427
     428RTEMS_INLINE_ROUTINE bool _Watchdog_Per_CPU_lazy_insert_monotonic(
     429  Watchdog_Control *the_watchdog,
     430  Per_CPU_Control  *cpu,
     431  uint64_t          expire
     432)
     433{
     434  ISR_lock_Context  lock_context;
     435  Watchdog_Header  *header;
     436  bool              insert;
     437
     438  header = &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ];
     439
     440  _Watchdog_Set_CPU( the_watchdog, cpu );
     441
     442  _Watchdog_Per_CPU_acquire_critical( cpu, &lock_context );
     443  insert = ( expire > cpu->Watchdog.ticks );
     444
     445  if ( insert ) {
     446    _Watchdog_Insert(header, the_watchdog, expire);
     447  }
     448
     449  _Watchdog_Per_CPU_release_critical( cpu, &lock_context );
     450  return insert;
     451}
     452
    428453RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Per_CPU_insert_realtime(
    429454  Watchdog_Control *the_watchdog,
Note: See TracChangeset for help on using the changeset viewer.