Changeset 9480815a in rtems for testsuites


Ignore:
Timestamp:
Dec 21, 2017, 1:36:52 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
8fa4549
Parents:
3a4e044
git-author:
Sebastian Huber <sebastian.huber@…> (12/21/17 13:36:52)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/02/18 14:01:20)
Message:

score: Introduce new monotonic clock

Rename PER_CPU_WATCHDOG_MONOTONIC to PER_CPU_WATCHDOG_TICKS. Add new
PER_CPU_WATCHDOG_MONOTONIC which is based on the system uptime (measured
by timecounter).

Close #3264.

Location:
testsuites/sptests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spintrcritical08/init.c

    r3a4e044 r9480815a  
    4646{
    4747  Per_CPU_Control *cpu = _Per_CPU_Get();
    48   Watchdog_Header *header = &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ];
     48  Watchdog_Header *header = &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_TICKS ];
    4949  Watchdog_Control *watchdog = (Watchdog_Control *) header->first;
    5050
     
    5656    Thread_Wait_flags flags = _Thread_Wait_flags_get( thread );
    5757
    58     _Watchdog_Per_CPU_remove_monotonic( watchdog );
     58    _Watchdog_Per_CPU_remove_ticks( watchdog );
    5959
    6060    rtems_test_assert( getState() == RATE_MONOTONIC_ACTIVE );
  • testsuites/sptests/spintrcritical09/init.c

    r3a4e044 r9480815a  
    4040{
    4141  Per_CPU_Control *cpu_self = _Per_CPU_Get();
    42   Watchdog_Header *header = &cpu_self->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ];
     42  Watchdog_Header *header = &cpu_self->Watchdog.Header[ PER_CPU_WATCHDOG_TICKS ];
    4343  Watchdog_Control *watchdog = (Watchdog_Control *) header->first;
    4444
  • testsuites/sptests/spwatchdog/init.c

    r3a4e044 r9480815a  
    6060  rtems_test_assert( _Watchdog_Nanoseconds_per_tick == 10000000 );
    6161  rtems_test_assert( _Watchdog_Ticks_per_second == 100 );
    62   rtems_test_assert( _Watchdog_Monotonic_max_seconds == 184467440737095516 );
    6362  rtems_test_assert( rtems_clock_get_ticks_per_second() == 100 );
    6463  #undef rtems_clock_get_ticks_per_second
Note: See TracChangeset for help on using the changeset viewer.