Changeset bf2a53d2 in rtems for cpukit/posix


Ignore:
Timestamp:
Oct 14, 2017, 1:14:53 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
91ce012c
Parents:
f4009d8
git-author:
Sebastian Huber <sebastian.huber@…> (10/14/17 13:14:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/17/17 06:15:40)
Message:

score: Rename watchdog variants

Rename PER_CPU_WATCHDOG_RELATIVE in PER_CPU_WATCHDOG_MONOTONIC to
highlight the corresponding POSIX CLOCK_MONOTONIC.

Rename PER_CPU_WATCHDOG_ABSOLUTE in PER_CPU_WATCHDOG_REALTIME to
highlight the corresponding POSIX CLOCK_REALTIME.

Update #3117.
Update #3182.

Location:
cpukit/posix
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/include/rtems/posix/pthreadimpl.h

    rf4009d8 rbf2a53d2  
    5757    _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
    5858
    59   _Watchdog_Per_CPU_insert_relative(
     59  _Watchdog_Per_CPU_insert_monotonic(
    6060    &api->Sporadic.Timer,
    6161    _Per_CPU_Get(),
  • cpukit/posix/src/alarm.c

    rf4009d8 rbf2a53d2  
    7878
    7979  remaining = (unsigned long) _Watchdog_Cancel(
    80     &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ],
     80    &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ],
    8181    the_watchdog,
    8282    now
     
    8585  if ( ticks != 0 ) {
    8686    _Watchdog_Insert(
    87       &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ],
     87      &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ],
    8888      the_watchdog,
    8989      now + ticks
  • cpukit/posix/src/pthread.c

    rf4009d8 rbf2a53d2  
    7070  }
    7171
    72   _Watchdog_Per_CPU_remove_relative( &api->Sporadic.Timer );
     72  _Watchdog_Per_CPU_remove_monotonic( &api->Sporadic.Timer );
    7373  _POSIX_Threads_Sporadic_timer_insert( the_thread, api );
    7474
     
    166166
    167167  if ( api->schedpolicy == SCHED_SPORADIC ) {
    168     _Watchdog_Per_CPU_remove_relative( &api->Sporadic.Timer );
     168    _Watchdog_Per_CPU_remove_monotonic( &api->Sporadic.Timer );
    169169  }
    170170
  • cpukit/posix/src/pthreadsetschedparam.c

    rf4009d8 rbf2a53d2  
    7070  api = the_thread->API_Extensions[ THREAD_API_POSIX ];
    7171
    72   _Watchdog_Per_CPU_remove_relative( &api->Sporadic.Timer );
     72  _Watchdog_Per_CPU_remove_monotonic( &api->Sporadic.Timer );
    7373
    7474  _Priority_Node_set_priority( &the_thread->Real_priority, core_normal_prio );
  • cpukit/posix/src/timerdelete.c

    rf4009d8 rbf2a53d2  
    5757    ptimer->state = POSIX_TIMER_STATE_FREE;
    5858    _Watchdog_Remove(
    59       &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ],
     59      &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ],
    6060      &ptimer->Timer
    6161    );
  • cpukit/posix/src/timersettime.c

    rf4009d8 rbf2a53d2  
    4343
    4444  _Watchdog_Insert(
    45     &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ],
     45    &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ],
    4646    &ptimer->Timer,
    4747    cpu->Watchdog.ticks + ticks
     
    153153    /* Stop the timer */
    154154    _Watchdog_Remove(
    155       &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ],
     155      &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ],
    156156      &ptimer->Timer
    157157    );
  • cpukit/posix/src/ualarm.c

    rf4009d8 rbf2a53d2  
    5656   */
    5757  if ( _POSIX_signals_Ualarm_interval != 0 ) {
    58     _Watchdog_Per_CPU_insert_relative(
     58    _Watchdog_Per_CPU_insert_monotonic(
    5959      the_watchdog,
    6060      _Per_CPU_Get(),
     
    108108
    109109  remaining = (useconds_t) _Watchdog_Cancel(
    110     &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ],
     110    &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ],
    111111    the_watchdog,
    112112    now
     
    119119    _Watchdog_Set_CPU( the_watchdog, cpu );
    120120    _Watchdog_Insert(
    121       &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ],
     121      &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ],
    122122      the_watchdog,
    123123      now + ticks_initial
Note: See TracChangeset for help on using the changeset viewer.